Kaydet (Commit) adde86d0 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix compiler compliant about \0 not being an opcode

üst 53ffdc53
......@@ -5298,13 +5298,12 @@ load(UnpicklerObject *self)
case STOP:
break;
case '\0':
PyErr_SetNone(PyExc_EOFError);
return NULL;
default:
PyErr_Format(UnpicklingError,
"invalid load key, '%c'.", s[0]);
if (s[0] == '\0')
PyErr_SetNone(PyExc_EOFError);
else
PyErr_Format(UnpicklingError,
"invalid load key, '%c'.", s[0]);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment