mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix typos in the Modules directory (GH-28761)
This commit is contained in:
parent
5baec4aea6
commit
dd02a696e5
19 changed files with 21 additions and 21 deletions
|
|
@ -4527,7 +4527,7 @@ dump(PicklerObject *self, PyObject *obj)
|
|||
* call when setting the reducer_override attribute of the Pickler instance
|
||||
* to a bound method of the same instance. This is important as the Pickler
|
||||
* instance holds a reference to each object it has pickled (through its
|
||||
* memo): thus, these objects wont be garbage-collected as long as the
|
||||
* memo): thus, these objects won't be garbage-collected as long as the
|
||||
* Pickler itself is not collected. */
|
||||
Py_CLEAR(self->reducer_override);
|
||||
return status;
|
||||
|
|
@ -6540,7 +6540,7 @@ do_setitems(UnpicklerObject *self, Py_ssize_t x)
|
|||
return 0;
|
||||
if ((len - x) % 2 != 0) {
|
||||
PickleState *st = _Pickle_GetGlobalState();
|
||||
/* Currupt or hostile pickle -- we never write one like this. */
|
||||
/* Corrupt or hostile pickle -- we never write one like this. */
|
||||
PyErr_SetString(st->UnpicklingError,
|
||||
"odd number of items for SETITEMS");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue