diff options
-rw-r--r-- | Lib/pickle.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index bf73599..0fde828 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -38,6 +38,11 @@ mloads = marshal.loads PicklingError = "pickle.PicklingError" UnpicklingError = "pickle.UnpicklingError" +try: + from org.python.core import PyStringMap +except ImportError: + PyStringMap = None + MARK = '(' STOP = '.' POP = '0' @@ -363,6 +368,8 @@ class Pickler: write(SETITEMS) dispatch[DictionaryType] = save_dict + if not PyStringMap is None: + dispatch[PyStringMap] = save_dict def save_inst(self, object): d = id(object) |