]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119562: Remove unused private string constants from `ast.py` (#119576)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sun, 26 May 2024 13:31:02 +0000 (14:31 +0100)
committerGitHub <noreply@github.com>
Sun, 26 May 2024 13:31:02 +0000 (13:31 +0000)
Lib/ast.py

index c5d495ea1c80007182a5d0180515da6e78a13080..bc6c3347787d6196292338bfc540fb9e12fdcf3c 100644 (file)
@@ -567,15 +567,6 @@ class NodeTransformer(NodeVisitor):
                     setattr(node, field, new_node)
         return node
 
-
-_DEPRECATED_VALUE_ALIAS_MESSAGE = (
-    "{name} is deprecated and will be removed in Python {remove}; use value instead"
-)
-_DEPRECATED_CLASS_MESSAGE = (
-    "{name} is deprecated and will be removed in Python {remove}; "
-    "use ast.Constant instead"
-)
-
 class slice(AST):
     """Deprecated AST node class."""