comparison 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
comparison
equal deleted inserted replaced
36821:12bcd16c31ad 36822:d02b4cfefa0a
331 repr_suffix = PyString_FromString("()"); 331 repr_suffix = PyString_FromString("()");
332 if (!repr_suffix) 332 if (!repr_suffix)
333 return NULL; 333 return NULL;
334 } 334 }
335 else { 335 else {
336 PyObject *args_repr; 336 PyObject *args_repr = PyObject_Repr(args_attr);
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);
346 Py_DECREF(args_attr); 337 Py_DECREF(args_attr);
347 if (!args_repr) 338 if (!args_repr)
348 return NULL; 339 return NULL;
349 340
350 repr_suffix = args_repr; 341 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;*/
365 } 342 }
366 343
367 repr = PyString_FromString(self->ob_type->tp_name); 344 repr = PyString_FromString(self->ob_type->tp_name);
368 if (!repr) { 345 if (!repr) {
369 Py_DECREF(repr_suffix); 346 Py_DECREF(repr_suffix);