]> granicus.if.org Git - python/commitdiff
Tighten an overbroad and misleading assertion.
authorRaymond Hettinger <python@rcn.com>
Sun, 26 Mar 2006 03:11:29 +0000 (03:11 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 26 Mar 2006 03:11:29 +0000 (03:11 +0000)
(Reported by Jim Jewett.)

Objects/setobject.c

index ed3d1900a8a0423c3010a80f463fc831c8cc8c36..3541ff18b4ef750146e2ad6831635c222cd78cb6 100644 (file)
@@ -445,7 +445,7 @@ set_clear_internal(PySetObject *so)
                }
 #ifdef Py_DEBUG
                else
-                       assert(entry->key == NULL || entry->key == dummy);
+                       assert(entry->key == NULL);
 #endif
        }