aboutsummaryrefslogtreecommitdiff
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-23 23:18:20 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-23 23:18:20 +0200
commit91541931f5fc58cb7f8406d1e174cb805dacdfa2 (patch)
tree6a5afcd3598736dd6cdd2e6d6af02df581b14866 /Objects/typeobject.c
parent0acbcb5bbeec87e3a8fae872a0368a4e297a8e8a (diff)
downloadcpython3-91541931f5fc58cb7f8406d1e174cb805dacdfa2.tar.gz
Back out 5bd9db528aed (issue #18408). It caused unsolved buildbot failures.
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 3ff42da1dd..c6ff0193e7 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -736,13 +736,6 @@ type_call(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL;
}
-#ifdef Py_DEBUG
- /* type_call() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
- caller looses its exception */
- assert(!PyErr_Occurred());
-#endif
-
obj = type->tp_new(type, args, kwds);
if (obj != NULL) {
/* Ugly exception: when the call was type(something),