summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-07 08:34:42 (GMT)
committerGitHub <noreply@github.com>2021-10-07 08:34:42 (GMT)
commitdd02a696e55b450413e765e698e653d781ca4205 (patch)
tree56559f73fe0771d9354abcd0131fa113f5975bc1 /Modules/_pickle.c
parent5baec4aea6821256f5d1785a6bd596fab069f1b6 (diff)
downloadcpython-dd02a696e55b450413e765e698e653d781ca4205.zip
cpython-dd02a696e55b450413e765e698e653d781ca4205.tar.gz
cpython-dd02a696e55b450413e765e698e653d781ca4205.tar.bz2
Fix typos in the Modules directory (GH-28761)
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 3e74faf..e693b50 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -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;