diff options
Diffstat (limited to 'Lib/regex_syntax.py')
-rw-r--r-- | Lib/regex_syntax.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/regex_syntax.py b/Lib/regex_syntax.py index b0a0dbf..421ffd9 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 |