]> granicus.if.org Git - python/commitdiff
Split lookdict_unicode_nodummy() assertion to debug
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Sep 2016 18:16:07 +0000 (11:16 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Sep 2016 18:16:07 +0000 (11:16 -0700)
Issue #27350.

Objects/dictobject.c

index 98515e9dabf2d3101c6e8422913103c834444ba9..cd258034df8593f3e0d2e3b344ee14272769e634 100644 (file)
@@ -802,7 +802,8 @@ lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key,
         return DKIX_EMPTY;
     }
     ep = &ep0[ix];
-    assert(ep->me_key != NULL && PyUnicode_CheckExact(ep->me_key));
+    assert(ep->me_key != NULL);
+    assert(PyUnicode_CheckExact(ep->me_key));
     if (ep->me_key == key ||
         (ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
         if (hashpos != NULL)