diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-11-30 21:55:39 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-11-30 21:55:39 (GMT) |
commit | a1eedf9ff0c986f99321ffef8a65b153c126b86a (patch) | |
tree | 9f0eddfe5fc5721474e244afe38c416c9fde360f /Modules | |
parent | 6fe39b76a9b353ad619108ad2877a155680270dc (diff) | |
parent | 896414fedf5e882345aca177d63da72bf6d8209a (diff) | |
download | cpython-a1eedf9ff0c986f99321ffef8a65b153c126b86a.zip cpython-a1eedf9ff0c986f99321ffef8a65b153c126b86a.tar.gz cpython-a1eedf9ff0c986f99321ffef8a65b153c126b86a.tar.bz2 |
Merge with 3.3.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index a9fad0e..a83687b 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -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); |