From: Alex Waygood Date: Sun, 26 May 2024 13:31:02 +0000 (+0100) Subject: gh-119562: Remove unused private string constants from `ast.py` (#119576) X-Git-Tag: v3.14.0a1~1761 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0220663e26aa2a5322df092078c5a16cddcc5cf4;p=thirdparty%2FPython%2Fcpython.git gh-119562: Remove unused private string constants from `ast.py` (#119576) --- diff --git a/Lib/ast.py b/Lib/ast.py index c5d495ea1c80..bc6c3347787d 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -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."""