mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Changed __all__ to the empty list so people won't misuse fix.py.
This commit is contained in:
parent
10651494f5
commit
4b0ecc94e5
@ -33,7 +33,9 @@
|
|||||||
Fixes stuff that Python should have but doesn't.
|
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']
|
'partition', 'any', 'all', 'rsplit']
|
||||||
|
|
||||||
import string
|
import string
|
||||||
@ -129,7 +131,7 @@ def rsplit(s, sep=None, maxsplit=-1):
|
|||||||
L.reverse()
|
L.reverse()
|
||||||
return [s[::-1] for s in L]
|
return [s[::-1] for s in L]
|
||||||
|
|
||||||
for name in __all__:
|
for name in exported:
|
||||||
__builtins__[name] = globals()[name]
|
__builtins__[name] = globals()[name]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user