[Python-checkins] r72918 - python/branches/py3k/Modules/_pickle.c
alexandre.vassalotti
python-checkins at python.org
Mon May 25 20:00:52 CEST 2009
Author: alexandre.vassalotti
Date: Mon May 25 20:00:52 2009
New Revision: 72918
Log:
Make variable declarations for opcodes in batch_dict_exact consistent
with the rest of the module.
Modified:
python/branches/py3k/Modules/_pickle.c
Modified: python/branches/py3k/Modules/_pickle.c
==============================================================================
--- python/branches/py3k/Modules/_pickle.c (original)
+++ python/branches/py3k/Modules/_pickle.c Mon May 25 20:00:52 2009
@@ -1715,9 +1715,9 @@
int i;
Py_ssize_t dict_size, ppos = 0;
- static const char mark_op = MARK;
- static const char setitem = SETITEM;
- static const char setitems = SETITEMS;
+ const char mark_op = MARK;
+ const char setitem_op = SETITEM;
+ const char setitems_op = SETITEMS;
assert(obj != NULL);
assert(self->proto > 0);
@@ -1731,7 +1731,7 @@
return -1;
if (save(self, value, 0) < 0)
return -1;
- if (pickler_write(self, &setitem, 1) < 0)
+ if (pickler_write(self, &setitem_op, 1) < 0)
return -1;
return 0;
}
@@ -1749,7 +1749,7 @@
if (++i == BATCHSIZE)
break;
}
- if (pickler_write(self, &setitems, 1) < 0)
+ if (pickler_write(self, &setitems_op, 1) < 0)
return -1;
if (PyDict_Size(obj) != dict_size) {
PyErr_Format(
More information about the Python-checkins
mailing list