mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Merge pull request #18 from LazyImportsCabal/bad_global
Fix eager imports in try/except in global mode
This commit is contained in:
commit
c075f5b4fd
1 changed files with 1 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ _PyCompile_TopFBlock(compiler *c)
|
||||||
bool
|
bool
|
||||||
_PyCompile_InExceptionHandler(compiler *c)
|
_PyCompile_InExceptionHandler(compiler *c)
|
||||||
{
|
{
|
||||||
for (Py_ssize_t i = c->u->u_nfblocks; i < c->u->u_nfblocks; i++) {
|
for (Py_ssize_t i = 0; i < c->u->u_nfblocks; i++) {
|
||||||
fblockinfo *block = &c->u->u_fblock[i];
|
fblockinfo *block = &c->u->u_fblock[i];
|
||||||
switch (block->fb_type) {
|
switch (block->fb_type) {
|
||||||
case COMPILE_FBLOCK_TRY_EXCEPT:
|
case COMPILE_FBLOCK_TRY_EXCEPT:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue