Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba5e81 commit 373f8d8Copy full SHA for 373f8d8
1 file changed
Python/ceval.c
@@ -1666,17 +1666,14 @@ eval_frame(PyFrameObject *f)
1666
1667
case LOAD_FAST:
1668
x = GETLOCAL(oparg);
1669
- if (x == NULL) {
1670
- format_exc_check_arg(
1671
- PyExc_UnboundLocalError,
1672
- UNBOUNDLOCAL_ERROR_MSG,
1673
- PyTuple_GetItem(co->co_varnames, oparg)
1674
- );
1675
- break;
+ if (x != NULL) {
+ Py_INCREF(x);
+ PUSH(x);
+ continue;
1676
}
1677
- Py_INCREF(x);
1678
- PUSH(x);
1679
- if (x != NULL) continue;
+ format_exc_check_arg(PyExc_UnboundLocalError,
+ UNBOUNDLOCAL_ERROR_MSG,
+ PyTuple_GetItem(co->co_varnames, oparg));
1680
break;
1681
1682
case STORE_FAST:
0 commit comments