Commit 67920146 authored by Tim Peters's avatar Tim Peters

Typo repair.

parent 3e667d54
...@@ -1480,7 +1480,7 @@ save_unicode(Picklerobject *self, PyObject *args, int doput) ...@@ -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. */ /* A helper for save_tuple. Push the len elements in tuple t on the stack. */
static int static int
store_tuple_elememts(Picklerobject *self, PyObject *t, int len) store_tuple_elements(Picklerobject *self, PyObject *t, int len)
{ {
int i; int i;
int res = -1; /* guilty until proved innocent */ int res = -1; /* guilty until proved innocent */
...@@ -1503,7 +1503,7 @@ store_tuple_elememts(Picklerobject *self, PyObject *t, int len) ...@@ -1503,7 +1503,7 @@ store_tuple_elememts(Picklerobject *self, PyObject *t, int len)
/* Tuples are ubiquitous in the pickle protocols, so many techniques are /* Tuples are ubiquitous in the pickle protocols, so many techniques are
* used across protocols to minimize the space needed to pickle them. * 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 * (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. * magic so that it works in all cases. IOW, this is a long routine.
*/ */
...@@ -1553,7 +1553,7 @@ save_tuple(Picklerobject *self, PyObject *args) ...@@ -1553,7 +1553,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if (len <= 3 && self->proto >= 2) { if (len <= 3 && self->proto >= 2) {
/* Use TUPLE{1,2,3} opcodes. */ /* Use TUPLE{1,2,3} opcodes. */
if (store_tuple_elememts(self, args, len) < 0) if (store_tuple_elements(self, args, len) < 0)
goto finally; goto finally;
if (PyDict_GetItem(self->memo, py_tuple_id)) { if (PyDict_GetItem(self->memo, py_tuple_id)) {
/* pop the len elements */ /* pop the len elements */
...@@ -1578,7 +1578,7 @@ save_tuple(Picklerobject *self, PyObject *args) ...@@ -1578,7 +1578,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if (self->write_func(self, &MARKv, 1) < 0) if (self->write_func(self, &MARKv, 1) < 0)
goto finally; goto finally;
if (store_tuple_elememts(self, args, len) < 0) if (store_tuple_elements(self, args, len) < 0)
goto finally; goto finally;
if (PyDict_GetItem(self->memo, py_tuple_id)) { if (PyDict_GetItem(self->memo, py_tuple_id)) {
......
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