asp.py: fix deprecation warning (#39943)
This commit is contained in:
parent
f7692d5699
commit
a009a1a62a
1 changed files with 2 additions and 3 deletions
|
@ -2730,9 +2730,8 @@ def reorder_flags(self):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue