diff options
author | Guido van Rossum <guido@python.org> | 2007-05-08 17:49:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-08 17:49:10 (GMT) |
commit | b8142c3e6403cdcff38b808b3d881b6e8da064d8 (patch) | |
tree | ef9ad4752956df3b3dc07fc469d56de91bc7b89b /Lib/pickle.py | |
parent | 74302dbd3cfd10aa3139f27644740ac6ca77cbd7 (diff) | |
download | cpython-b8142c3e6403cdcff38b808b3d881b6e8da064d8.zip cpython-b8142c3e6403cdcff38b808b3d881b6e8da064d8.tar.gz cpython-b8142c3e6403cdcff38b808b3d881b6e8da064d8.tar.bz2 |
Got test_exceptions.py working.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 675fa1f..f976ffb 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -929,12 +929,12 @@ class Unpickler: break else: raise ValueError, "insecure string pickle" - self.append(rep.decode("string-escape")) + self.append(str8(rep.decode("string-escape"))) dispatch[STRING[0]] = load_string def load_binstring(self): len = mloads(b'i' + self.read(4)) - self.append(self.read(len)) + self.append(str8(self.read(len))) dispatch[BINSTRING[0]] = load_binstring def load_unicode(self): @@ -948,7 +948,7 @@ class Unpickler: def load_short_binstring(self): len = ord(self.read(1)) - self.append(self.read(len)) + self.append(str8(self.read(len))) dispatch[SHORT_BINSTRING[0]] = load_short_binstring def load_tuple(self): |