Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2ba9d8

Browse files
committed
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.
1 parent 4961ef7 commit b2ba9d8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Python/ceval.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,12 +1637,8 @@ eval_code2(co, globals, locals,
16371637
}
16381638
nstar = PySequence_Length(stararg);
16391639
if (nstar < 0) {
1640-
if (!PyErr_Occurred)
1641-
PyErr_SetString(
1642-
PyExc_TypeError,
1643-
"len() of unsized object");
1644-
x = NULL;
1645-
break;
1640+
x = NULL;
1641+
break;
16461642
}
16471643
}
16481644
if (nk > 0) {

0 commit comments

Comments
 (0)