From 0320497b1eab6ea082b46f1d55d293e2128a377f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 3 Mar 2006 19:13:57 +0000 Subject: Remove commented code --- Python/exceptions.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'Python') diff --git a/Python/exceptions.c b/Python/exceptions.c index 560aeb86e0..5dec197bd8 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -333,35 +333,12 @@ BaseException__repr__(PyObject *self, PyObject *args) return NULL; } else { - PyObject *args_repr; - /*PyObject *right_paren; - - repr_suffix = PyString_FromString("(*"); - if (!repr_suffix) { - Py_DECREF(args_attr); - return NULL; - }*/ - - args_repr = PyObject_Repr(args_attr); + PyObject *args_repr = PyObject_Repr(args_attr); Py_DECREF(args_attr); if (!args_repr) return NULL; repr_suffix = args_repr; - - /*PyString_ConcatAndDel(&repr_suffix, args_repr); - if (!repr_suffix) - return NULL; - - right_paren = PyString_FromString(")"); - if (!right_paren) { - Py_DECREF(repr_suffix); - return NULL; - } - - PyString_ConcatAndDel(&repr_suffix, right_paren); - if (!repr_suffix) - return NULL;*/ } repr = PyString_FromString(self->ob_type->tp_name); -- cgit v1.2.1