]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
eval_code2(): Oops, in the last checkin, we shouldn't check for
authorBarry Warsaw <barry@python.org>
Wed, 29 Mar 2000 18:36:49 +0000 (18:36 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 29 Mar 2000 18:36:49 +0000 (18:36 +0000)
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

index 7a0895f194a1cfa678afb77e1ace378f1751d445..d7171c8de3aaffaa957a6636883f46c881eacae2 100644 (file)
@@ -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) {