summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-09-12 11:27:03 +0200
committerGitHub <noreply@github.com>2023-09-12 09:27:03 +0000
commita009a1a62ad44ecb095b8b44c9b85aaf0e904ade (patch)
tree27e0c235948f3d9d40945aaba73788edd02815da /lib
parentf7692d5699792640916efd6dd108bb51d8f9a04c (diff)
downloadspack-a009a1a62ad44ecb095b8b44c9b85aaf0e904ade.tar.gz
spack-a009a1a62ad44ecb095b8b44c9b85aaf0e904ade.tar.bz2
spack-a009a1a62ad44ecb095b8b44c9b85aaf0e904ade.tar.xz
spack-a009a1a62ad44ecb095b8b44c9b85aaf0e904ade.zip
asp.py: fix deprecation warning (#39943)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/asp.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index 7b13b4baa3..6ddca741ce 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -2730,9 +2730,8 @@ class SpecBuilder:
spec.compiler_flags.update({flag_type: ordered_compiler_flags})
- def deprecated(self, pkg, version):
- msg = 'using "{0}@{1}" which is a deprecated version'
- tty.warn(msg.format(pkg, version))
+ def deprecated(self, node: NodeArgument, version: str) -> None:
+ tty.warn(f'using "{node.pkg}@{version}" which is a deprecated version')
@staticmethod
def sort_fn(function_tuple):