asp.py: fix deprecation warning (#39943)

This commit is contained in:
Harmen Stoppels 2023-09-12 11:27:03 +02:00 committed by GitHub
parent f7692d5699
commit a009a1a62a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2730,9 +2730,8 @@ def reorder_flags(self):
spec.compiler_flags.update({flag_type: ordered_compiler_flags}) spec.compiler_flags.update({flag_type: ordered_compiler_flags})
def deprecated(self, pkg, version): def deprecated(self, node: NodeArgument, version: str) -> None:
msg = 'using "{0}@{1}" which is a deprecated version' tty.warn(f'using "{node.pkg}@{version}" which is a deprecated version')
tty.warn(msg.format(pkg, version))
@staticmethod @staticmethod
def sort_fn(function_tuple): def sort_fn(function_tuple):