From 0de65807e6bdc5254f5a7e99b2f39adeea6b883b Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 15 Feb 2001 22:15:14 +0000 Subject: bunch more __all__ lists also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance) --- Lib/regex_syntax.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/regex_syntax.py') diff --git a/Lib/regex_syntax.py b/Lib/regex_syntax.py index b0a0dbf20c..421ffd9b9f 100644 --- a/Lib/regex_syntax.py +++ b/Lib/regex_syntax.py @@ -51,3 +51,9 @@ RE_SYNTAX_GREP = (RE_BK_PLUS_QM | RE_NEWLINE_OR) RE_SYNTAX_EMACS = 0 # (Python's obsolete "regexp" module used a syntax similar to awk.) + +__all__ = locals().keys() +for _i in range(len(__all__)-1,-1,-1): + if __all__[_i][0] == "_": + del __all__[_i] +del _i -- cgit v1.2.1