diff options
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index a883f5f7c3..93cfb641e0 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2359,8 +2359,9 @@ compiler_import(struct compiler *c, stmt_ty s) ADDOP_NAME(c, IMPORT_NAME, alias->name, names); if (alias->asname) { - return compiler_import_as(c, - alias->name, alias->asname); + r = compiler_import_as(c, alias->name, alias->asname); + if (!r) + return r; } else { identifier tmp = alias->name; |