summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-05 03:46:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-05 03:46:17 (GMT)
commit679201467b668e4c65623828b4be762ba20641dc (patch)
tree1df39f17945d80f705692b9b10482d261a279ad6 /Modules/cPickle.c
parent3e667d5452ce480eee2d4125c1209630e02ac574 (diff)
downloadcpython-679201467b668e4c65623828b4be762ba20641dc.zip
cpython-679201467b668e4c65623828b4be762ba20641dc.tar.gz
cpython-679201467b668e4c65623828b4be762ba20641dc.tar.bz2
Typo repair.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index e726220..27d8db8 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -1480,7 +1480,7 @@ save_unicode(Picklerobject *self, PyObject *args, int doput)
/* A helper for save_tuple. Push the len elements in tuple t on the stack. */
static int
-store_tuple_elememts(Picklerobject *self, PyObject *t, int len)
+store_tuple_elements(Picklerobject *self, PyObject *t, int len)
{
int i;
int res = -1; /* guilty until proved innocent */
@@ -1503,7 +1503,7 @@ store_tuple_elememts(Picklerobject *self, PyObject *t, int len)
/* Tuples are ubiquitous in the pickle protocols, so many techniques are
* used across protocols to minimize the space needed to pickle them.
- * Tuples are also the only builtin immuatable type that can be recursive
+ * Tuples are also the only builtin immutable type that can be recursive
* (a tuple can be reached from itself), and that requires some subtle
* magic so that it works in all cases. IOW, this is a long routine.
*/
@@ -1553,7 +1553,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if (len <= 3 && self->proto >= 2) {
/* Use TUPLE{1,2,3} opcodes. */
- if (store_tuple_elememts(self, args, len) < 0)
+ if (store_tuple_elements(self, args, len) < 0)
goto finally;
if (PyDict_GetItem(self->memo, py_tuple_id)) {
/* pop the len elements */
@@ -1578,7 +1578,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if (self->write_func(self, &MARKv, 1) < 0)
goto finally;
- if (store_tuple_elememts(self, args, len) < 0)
+ if (store_tuple_elements(self, args, len) < 0)
goto finally;
if (PyDict_GetItem(self->memo, py_tuple_id)) {