]> granicus.if.org Git - python/commitdiff
remove tautological condition (closes #22954)
authorBenjamin Peterson <benjamin@python.org>
Thu, 27 Nov 2014 05:03:11 +0000 (23:03 -0600)
committerBenjamin Peterson <benjamin@python.org>
Thu, 27 Nov 2014 05:03:11 +0000 (23:03 -0600)
Objects/typeobject.c

index 55fd450c46a47ce845ffefdaa0b1a6a51f6335de..3b1d1891954255f1f40ac6f27859778f4fd9ee2c 100644 (file)
@@ -5342,7 +5342,7 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
                      "%s.__new__(%s) is not safe, use %s.__new__()",
                      type->tp_name,
                      subtype->tp_name,
-                     staticbase == NULL ? "?" : staticbase->tp_name);
+                     staticbase->tp_name);
         return NULL;
     }