Skip to content

Commit a546328

Browse files
committed
Revert "Add private unparse names to getattr"
This reverts commit 460491e.
1 parent d88eb24 commit a546328

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Lib/ast.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,4 @@ def __getattr__(name):
662662
from _ast_unparse import unparse
663663
return unparse
664664

665-
if name in {'_INFSTR', '_SINGLE_QUOTES', '_MULTI_QUOTES', '_ALL_QUOTES',
666-
'_Precedence', '_Unparser'}:
667-
# all of these names are private, but re-exported for compatibility
668-
import _ast_unparse
669-
return getattr(_ast_unparse, name)
670-
671665
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')

0 commit comments

Comments
 (0)