summaryrefslogtreecommitdiff
path: root/Lib/token.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/token.py')
-rw-r--r--[-rwxr-xr-x]Lib/token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/token.py b/Lib/token.py
index 6b5320db8c..31fae0a078 100755..100644
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -70,7 +70,7 @@ NT_OFFSET = 256
tok_name = {value: name
for name, value in globals().items()
- if isinstance(value, int)}
+ if isinstance(value, int) and not name.startswith('_')}
__all__.extend(tok_name.values())
def ISTERMINAL(x):