From 61dddc2c48b1a9ae093f37393a9601515cfb0d3f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 7 Aug 2001 17:19:25 +0000 Subject: 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.) --- Lib/tabnanny.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/tabnanny.py') diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index 35e5cfaa56..a0492e65c9 100755 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py @@ -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 -- cgit v1.2.1