diff options
author | Raymond Hettinger <python@rcn.com> | 2015-11-12 07:18:45 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-11-12 07:18:45 -0800 |
commit | 3a754038809a6cc89e7ee24c0b8293f4fe933153 (patch) | |
tree | c79654d0ce084236f278e4020615f4e40eda690b | |
parent | fedcf9474e73a8cb209a61f513f46fb062f2cd11 (diff) | |
download | cpython-3a754038809a6cc89e7ee24c0b8293f4fe933153.tar.gz cpython-3a754038809a6cc89e7ee24c0b8293f4fe933153.zip |
Deque uses "len" instead of varhead in Py2.7
-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 c5690ef09ef..b41c5def4a7 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -651,7 +651,7 @@ deque_clear(dequeobject *deque) Py_ssize_t n; PyObject *item; - if (Py_SIZE(deque) == 0) + if (deque->len == 0) return; /* During the process of clearing a deque, decrefs can cause the |