From b2ba9d8963396932b760897f0014dea11f932378 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 29 Mar 2000 18:36:49 +0000 Subject: 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. --- Python/ceval.c | 8 ++------ 1 file 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) { -- cgit v0.12