[Python-checkins] bpo-32436: Remove a redundant assert (#5275)

Yury Selivanov webhook-mailer at python.org
Tue Jan 23 02:00:06 EST 2018


https://github.com/python/cpython/commit/83c8675edb4fe278c5d930f7865977a5d3c7168a
commit: 83c8675edb4fe278c5d930f7865977a5d3c7168a
branch: master
author: Yury Selivanov <yury at magic.io>
committer: GitHub <noreply at github.com>
date: 2018-01-23T02:00:03-05:00
summary:

bpo-32436: Remove a redundant assert (#5275)

files:
M Python/hamt.c

diff --git a/Python/hamt.c b/Python/hamt.c
index 8ba5082026f..eb69fdd136b 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -1116,7 +1116,6 @@ hamt_node_bitmap_find(PyHamtNode_Bitmap *self,
     }
 
     idx = hamt_bitindex(self->b_bitmap, bit);
-    assert(idx >= 0);
     key_idx = idx * 2;
     val_idx = key_idx + 1;
 



More information about the Python-checkins mailing list