Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 12111:e2b02d40a142 legacy-trunk
eval_code2(): Oops, in the last checkin, we shouldn't check for
PyErr_Occurred(), just set x=NULL and break. Oh, and make Jeremy stop
nagging me about the "special" indentation for this block.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Wed, 29 Mar 2000 18:36:49 +0000 |
| parents | 92ec78e217d2 |
| children | 711340d44777 |
line wrap: on
line diff
--- a/Python/ceval.c Wed Mar 29 18:30:03 2000 +0000 +++ b/Python/ceval.c Wed Mar 29 18:36:49 2000 +0000 @@ -1637,12 +1637,8 @@ } nstar = PySequence_Length(stararg); if (nstar < 0) { - if (!PyErr_Occurred) - PyErr_SetString( - PyExc_TypeError, - "len() of unsized object"); - x = NULL; - break; + x = NULL; + break; } } if (nk > 0) {
