mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Add the NannyNag exception class and the process_tokens() function to
__all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
This commit is contained in:
parent
44b1e7d840
commit
c5943b1c8c
@ -17,7 +17,7 @@ import tokenize
|
||||
if not hasattr(tokenize, 'NL'):
|
||||
raise ValueError("tokenize.NL doesn't exist -- tokenize module too old")
|
||||
|
||||
__all__ = ["check"]
|
||||
__all__ = ["check", "NannyNag", "process_tokens"]
|
||||
|
||||
verbose = 0
|
||||
filename_only = 0
|
||||
|
Loading…
Reference in New Issue
Block a user