[Python-checkins] cpython (3.4): remove tautological condition (closes #22954)

benjamin.peterson python-checkins at python.org
Thu Nov 27 06:06:06 CET 2014


https://hg.python.org/cpython/rev/a498e599ce6a
changeset: 93611:a498e599ce6a
branch: 3.4
parent: 93609:6fce36de7916
user: Benjamin Peterson <benjamin at python.org>
date: Wed Nov 26 23:03:11 2014 -0600
summary:
 remove tautological condition (closes #22954)
files:
 Objects/typeobject.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5342,7 +5342,7 @@
 "%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;
 }
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /