diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-09-12 11:27:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 09:27:03 +0000 |
commit | a009a1a62ad44ecb095b8b44c9b85aaf0e904ade (patch) | |
tree | 27e0c235948f3d9d40945aaba73788edd02815da /lib | |
parent | f7692d5699792640916efd6dd108bb51d8f9a04c (diff) | |
download | spack-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.py | 5 |
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): |