summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-11-13 02:20:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-11-13 02:20:21 (GMT)
commitf358d2b2443affe5b2da0c9698a299c23478dbc5 (patch)
treeefca97438db3477f008ed52abb41374f8c904318 /Modules
parent4b4f0b997ca2a2f235c6148e23339e2d9728951c (diff)
downloadcpython-f358d2b2443affe5b2da0c9698a299c23478dbc5.zip
cpython-f358d2b2443affe5b2da0c9698a299c23478dbc5.tar.gz
cpython-f358d2b2443affe5b2da0c9698a299c23478dbc5.tar.bz2
Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index b41c5de..aaac660 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -1086,7 +1086,7 @@ deque_init(dequeobject *deque, PyObject *args, PyObject *kwdargs)
}
}
deque->maxlen = maxlen;
- if (Py_SIZE(deque) > 0)
+ if (deque->len > 0)
deque_clear(deque);
if (iterable != NULL) {
PyObject *rv = deque_extend(deque, iterable);