Merge "Python 3.14: do not use deprecated ast.NameConstant"

This commit is contained in:
Zuul 2024-08-02 16:52:35 +00:00 committed by Gerrit Code Review
commit f265def1da

View File

@ -90,7 +90,7 @@ def hacking_except_format_assert(logical_line, noqa):
def is_none(node):
'''Check whether an AST node corresponds to None.'''
return isinstance(node, ast.NameConstant) and node.value is None
return isinstance(node, ast.Constant) and node.value is None
def _get_local_func_name(node):