From: Serhiy Storchaka Date: Wed, 15 Jun 2016 17:06:29 +0000 (+0300) Subject: Issue #27301: Fixed incorrect return code for error in compile.c. X-Git-Tag: v2.7.13rc1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34cb3f026b0be1360ae438f82faa8ade126b8deb;p=thirdparty%2FPython%2Fcpython.git Issue #27301: Fixed incorrect return code for error in compile.c. --- diff --git a/Python/compile.c b/Python/compile.c index 51f2874b9472..ba93fb4bdc73 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;