diff options
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 5606ee0..dc4c3eb 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -30,6 +30,7 @@ from copy_reg import dispatch_table, safe_constructors import marshal import sys import struct +import re __all__ = ["PickleError", "PicklingError", "UnpicklingError", "Pickler", "Unpickler", "dump", "dumps", "load", "loads"] @@ -95,6 +96,8 @@ EMPTY_TUPLE = ')' SETITEMS = 'u' BINFLOAT = 'G' +__all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$",x)]) + class Pickler: def __init__(self, file, bin = 0): |