diff options
author | Raymond Hettinger <python@rcn.com> | 2015-10-06 02:52:37 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-10-06 02:52:37 (GMT) |
commit | 0443ac286009ed5c26fc296b96f66b5384355e3a (patch) | |
tree | 8e38ad8ecdca740e0cda957932be5af03a56dbe4 /Modules/_collectionsmodule.c | |
parent | 8ab4169f5a267d6942aebf377a4756ea3ddab17b (diff) | |
download | cpython-0443ac286009ed5c26fc296b96f66b5384355e3a.zip cpython-0443ac286009ed5c26fc296b96f66b5384355e3a.tar.gz cpython-0443ac286009ed5c26fc296b96f66b5384355e3a.tar.bz2 |
Eliminate unnecessary test
Diffstat (limited to 'Modules/_collectionsmodule.c')
-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 9312636..4ea9140 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -530,7 +530,7 @@ deque_copy(PyObject *deque) return NULL; new_deque->maxlen = old_deque->maxlen; /* Fast path for the deque_repeat() common case where len(deque) == 1 */ - if (Py_SIZE(deque) == 1 && new_deque->maxlen != 0) { + if (Py_SIZE(deque) == 1) { PyObject *item = old_deque->leftblock->data[old_deque->leftindex]; rv = deque_append(new_deque, item); } else { |