Commit 34cb3f02 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #27301: Fixed incorrect return code for error in compile.c.

parent b311eeef
......@@ -1889,7 +1889,7 @@ compiler_import_as(struct compiler *c, identifier name, identifier asname)
attr = PyString_FromStringAndSize(src,
dot ? dot - src : strlen(src));
if (!attr)
return -1;
return 0;
ADDOP_O(c, LOAD_ATTR, attr, names);
Py_DECREF(attr);
src = dot + 1;
......
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