diff options
author | Raymond Hettinger <python@rcn.com> | 2015-11-13 02:20:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-11-13 02:20:21 (GMT) |
commit | f358d2b2443affe5b2da0c9698a299c23478dbc5 (patch) | |
tree | efca97438db3477f008ed52abb41374f8c904318 /Modules | |
parent | 4b4f0b997ca2a2f235c6148e23339e2d9728951c (diff) | |
download | cpython-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.c | 2 |
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); |