Changed __all__ to the empty list so people won't misuse fix.py.

This commit is contained in:
Jeremy Fincher 2003-10-08 20:57:29 +00:00
parent 10651494f5
commit 4b0ecc94e5

View File

@ -33,7 +33,9 @@
Fixes stuff that Python should have but doesn't.
"""
__all__ = ['ignore', 'catch', 'reviter', 'window', 'group',
__all__ = []
exported = ['ignore', 'catch', 'reviter', 'window', 'group',
'partition', 'any', 'all', 'rsplit']
import string
@ -129,7 +131,7 @@ def rsplit(s, sep=None, maxsplit=-1):
L.reverse()
return [s[::-1] for s in L]
for name in __all__:
for name in exported:
__builtins__[name] = globals()[name]