summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-27 05:03:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-27 05:03:11 (GMT)
commite2defc4132fd0254b8c437c946dd6b311d4664c3 (patch)
treefd6f3f5f78bfa02e1b5cbf4704259e6885058854 /Objects
parent2e26a62363a86abcaaa5e484637effaad687f79f (diff)
downloadcpython-e2defc4132fd0254b8c437c946dd6b311d4664c3.zip
cpython-e2defc4132fd0254b8c437c946dd6b311d4664c3.tar.gz
cpython-e2defc4132fd0254b8c437c946dd6b311d4664c3.tar.bz2
remove tautological condition (closes #22954)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index d0ac3ac..619ac9b 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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;
}