summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-03 19:13:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-03 19:13:57 (GMT)
commit9742f27a9a94dc1598cdacbd952d35bf2185c1ab (patch)
tree2117c028088562d65069fe37dd517cb9785ac999 /Python
parenteaed39f303be60dfde45179f21302a7d3789c755 (diff)
downloadcpython-9742f27a9a94dc1598cdacbd952d35bf2185c1ab.zip
cpython-9742f27a9a94dc1598cdacbd952d35bf2185c1ab.tar.gz
cpython-9742f27a9a94dc1598cdacbd952d35bf2185c1ab.tar.bz2
Remove commented code
Diffstat (limited to 'Python')
-rw-r--r--Python/exceptions.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index 560aeb8..5dec197 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);