Skip to content

Commit 34cb3f0

Browse files
Issue #27301: Fixed incorrect return code for error in compile.c.
1 parent b311eee commit 34cb3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ compiler_import_as(struct compiler *c, identifier name, identifier asname)
18891889
attr = PyString_FromStringAndSize(src,
18901890
dot ? dot - src : strlen(src));
18911891
if (!attr)
1892-
return -1;
1892+
return 0;
18931893
ADDOP_O(c, LOAD_ATTR, attr, names);
18941894
Py_DECREF(attr);
18951895
src = dot + 1;

0 commit comments

Comments
 (0)