diff options
author | Barry Warsaw <barry@python.org> | 2000-03-29 18:36:49 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-03-29 18:36:49 (GMT) |
commit | b2ba9d8963396932b760897f0014dea11f932378 (patch) | |
tree | 608126426fa39a1fc2fbbda9e8d3ff159f59239e /Python | |
parent | 4961ef70862c62accdcd9870407eda5908839034 (diff) | |
download | cpython-b2ba9d8963396932b760897f0014dea11f932378.zip cpython-b2ba9d8963396932b760897f0014dea11f932378.tar.gz cpython-b2ba9d8963396932b760897f0014dea11f932378.tar.bz2 |
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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7a0895f..d7171c8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1637,12 +1637,8 @@ eval_code2(co, globals, locals, } 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) { |