]> 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 d0ac3ac9a8843f344e33ef65d5a507d8144e78cb..619ac9be1725b4e9c6a3cfcfccaf905a72e0e0bb 100644 (file)
@@ -4798,7 +4798,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;
     }