Kaydet (Commit) ac699efa authored tarafından Neil Schemenauer's avatar Neil Schemenauer

Don't stop generating code for import statements after the first "import as"

part.  Fixes one bug from #1333982.
üst 147b7593
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment