diff options
author | Skip Montanaro <skip@pobox.com> | 2001-02-15 22:15:14 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2001-02-15 22:15:14 (GMT) |
commit | 0de65807e6bdc5254f5a7e99b2f39adeea6b883b (patch) | |
tree | 914e04ae2a3d31caf9c9731825970dd45c754378 /Lib/string.py | |
parent | 04f1d37471d6dde302acedf56ee543fa827c7f29 (diff) | |
download | cpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.zip cpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.tar.gz cpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.tar.bz2 |
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)
Diffstat (limited to 'Lib/string.py')
-rw-r--r-- | Lib/string.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/string.py b/Lib/string.py index 913d980..45fe977 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -379,3 +379,9 @@ try: letters = lowercase + uppercase except ImportError: pass # Use the original versions + +__all__ = locals().keys() +for _i in range(len(__all__)-1,-1,-1): + if __all__[_i][0] == "_": + del __all__[_i] +del _i |