Mercurial > cpython-lru_cache-weakref
diff Python/exceptions.c @ 36822:d02b4cfefa0a legacy-trunk
Remove commented code
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 03 Mar 2006 19:13:57 +0000 |
| parents | 42487d8cf338 |
| children | 9eb24f92a784 |
line wrap: on
line diff
--- a/Python/exceptions.c Fri Mar 03 19:12:58 2006 +0000 +++ b/Python/exceptions.c Fri Mar 03 19:13:57 2006 +0000 @@ -333,35 +333,12 @@ 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);
