gh-119562: Remove unused private string constants from ast.py (#119576)

This commit is contained in:
Alex Waygood 2024-05-26 14:31:02 +01:00 committed by GitHub
parent 70b07aa415
commit 0220663e26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -567,15 +567,6 @@ def generic_visit(self, node):
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."""