Merge with 3.3.

This commit is contained in:
Alexandre Vassalotti 2013-11-30 13:55:39 -08:00
commit a1eedf9ff0
3 changed files with 26 additions and 19 deletions

View file

@ -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);