summaryrefslogtreecommitdiffstats
path: root/Lib/tokenize.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2001-03-01 04:27:19 (GMT)
committerSkip Montanaro <skip@pobox.com>2001-03-01 04:27:19 (GMT)
commit40fc16059f04ee8fda0b5956cc4883eb21ca8f8c (patch)
treeecfe045bbbf07071e1004fa2fac72c6f1c03633f /Lib/tokenize.py
parent58eadbaf1289f8671e435fb3a00e9e0351abbc16 (diff)
downloadcpython-40fc16059f04ee8fda0b5956cc4883eb21ca8f8c.zip
cpython-40fc16059f04ee8fda0b5956cc4883eb21ca8f8c.tar.gz
cpython-40fc16059f04ee8fda0b5956cc4883eb21ca8f8c.tar.bz2
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
giving it a slight facelift
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r--Lib/tokenize.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index 9f46612..789d130 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -14,11 +14,15 @@ __version__ = "Ka-Ping Yee, 26 October 1997; patched, GvR 3/30/98"
import string, re
from token import *
+import token
+__all__ = [x for x in dir(token) if x[0] != '_'] + ["COMMENT", "tokenize", "NL"]
+del token
+
COMMENT = N_TOKENS
tok_name[COMMENT] = 'COMMENT'
NL = N_TOKENS + 1
tok_name[NL] = 'NL'
-
+N_TOKENS += 2
# Changes from 1.3:
# Ignore now accepts \f as whitespace. Operator now includes '**'.