diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-15 17:06:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-15 17:06:29 (GMT) |
commit | 34cb3f026b0be1360ae438f82faa8ade126b8deb (patch) | |
tree | 1644d2fd4bdb625a84f0e3235764c6345c835d1c | |
parent | b311eeefb887cdc7f0105201d240f3af88afce46 (diff) | |
download | cpython-34cb3f026b0be1360ae438f82faa8ade126b8deb.zip cpython-34cb3f026b0be1360ae438f82faa8ade126b8deb.tar.gz cpython-34cb3f026b0be1360ae438f82faa8ade126b8deb.tar.bz2 |
Issue #27301: Fixed incorrect return code for error in compile.c.
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 51f2874..ba93fb4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; |