From: Raymond Hettinger Date: Fri, 13 Nov 2015 02:20:21 +0000 (-0800) Subject: Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7 X-Git-Tag: v2.7.11rc1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f358d2b2443affe5b2da0c9698a299c23478dbc5;p=thirdparty%2FPython%2Fcpython.git Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7 --- diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index b41c5def4a75..aaac660131a0 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);