summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-05-25 18:00:52 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-05-25 18:00:52 (GMT)
commitf70b129d7ca75079b552c9a5ee1c75a873ea3420 (patch)
treed18ebce56cd9bd2b39883fd0b95728bf0880370f /Modules
parent94f75e04a8a95a970e8f951af9edbb053bff8b44 (diff)
downloadcpython-f70b129d7ca75079b552c9a5ee1c75a873ea3420.zip
cpython-f70b129d7ca75079b552c9a5ee1c75a873ea3420.tar.gz
cpython-f70b129d7ca75079b552c9a5ee1c75a873ea3420.tar.bz2
Make variable declarations for opcodes in batch_dict_exact consistent
with the rest of the module.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 30b1140..6f33c25 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -1715,9 +1715,9 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
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 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
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 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
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(