mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Got test_exceptions.py working.
This commit is contained in:
parent
74302dbd3c
commit
b8142c3e64
2 changed files with 21 additions and 18 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue