mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Merge with 3.3.
This commit is contained in:
commit
a1eedf9ff0
3 changed files with 26 additions and 19 deletions
|
@ -5355,7 +5355,7 @@ load_persid(UnpicklerObject *self)
|
|||
if (self->pers_func) {
|
||||
if ((len = _Unpickler_Readline(self, &s)) < 0)
|
||||
return -1;
|
||||
if (len < 2)
|
||||
if (len < 1)
|
||||
return bad_readline();
|
||||
|
||||
pid = PyBytes_FromStringAndSize(s, len - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue