Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9742f27

Browse files
committed
Remove commented code
1 parent eaed39f commit 9742f27

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

Python/exceptions.c

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -333,35 +333,12 @@ BaseException__repr__(PyObject *self, PyObject *args)
333333
return NULL;
334334
}
335335
else {
336-
PyObject *args_repr;
337-
/*PyObject *right_paren;
338-
339-
repr_suffix = PyString_FromString("(*");
340-
if (!repr_suffix) {
341-
Py_DECREF(args_attr);
342-
return NULL;
343-
}*/
344-
345-
args_repr = PyObject_Repr(args_attr);
336+
PyObject *args_repr = PyObject_Repr(args_attr);
346337
Py_DECREF(args_attr);
347338
if (!args_repr)
348339
return NULL;
349340

350341
repr_suffix = args_repr;
351-
352-
/*PyString_ConcatAndDel(&repr_suffix, args_repr);
353-
if (!repr_suffix)
354-
return NULL;
355-
356-
right_paren = PyString_FromString(")");
357-
if (!right_paren) {
358-
Py_DECREF(repr_suffix);
359-
return NULL;
360-
}
361-
362-
PyString_ConcatAndDel(&repr_suffix, right_paren);
363-
if (!repr_suffix)
364-
return NULL;*/
365342
}
366343

367344
repr = PyString_FromString(self->ob_type->tp_name);

0 commit comments

Comments
 (0)