mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
giving it a slight facelift
This commit is contained in:
parent
58eadbaf12
commit
40fc16059f
17 changed files with 59 additions and 1 deletions
|
@ -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 '**'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue