File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments