summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-06-25 19:24:53 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-06-25 19:24:53 (GMT)
commit68dc052ca6183b9225d143c91557525bc0b23d98 (patch)
tree1d591312395521884935f74b14afb1780319eee8 /Modules/cPickle.c
parent1b6c4c80a3e4be52977a157c06aff06aacd4d2a8 (diff)
downloadcpython-68dc052ca6183b9225d143c91557525bc0b23d98.zip
cpython-68dc052ca6183b9225d143c91557525bc0b23d98.tar.gz
cpython-68dc052ca6183b9225d143c91557525bc0b23d98.tar.bz2
Reverting the patch from #3165, as it broke other
behaviours. I left the original test commented out (note that that test came from #2702, which seems to have a problem in FreeBSD and Windows, but not in Linux). I included a new test, to watch over the now-broken behaviour, I took it from #3179.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 98a2b87..afa75fd 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -1523,8 +1523,6 @@ batch_list(Picklerobject *self, PyObject *iter)
static char append = APPEND;
static char appends = APPENDS;
- self->nesting++;
-
assert(iter != NULL);
if (self->proto == 0) {
@@ -1664,8 +1662,6 @@ batch_dict(Picklerobject *self, PyObject *iter)
static char setitem = SETITEM;
static char setitems = SETITEMS;
- self->nesting++;
-
assert(iter != NULL);
if (self->proto == 0) {