Fix typos in the Modules directory (GH-28761)

This commit is contained in:
Christian Clauss 2021-10-07 10:34:42 +02:00 committed by GitHub
parent 5baec4aea6
commit dd02a696e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 21 additions and 21 deletions

View file

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