[Python-checkins] cpython (2.7): Issue #27301: Fixed incorrect return code for error in compile.c.

serhiy.storchaka python-checkins at python.org
Wed Jun 15 13:11:46 EDT 2016


https://hg.python.org/cpython/rev/c388b0751290
changeset: 102056:c388b0751290
branch: 2.7
parent: 102051:ce8b8e1055d1
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Jun 15 20:06:29 2016 +0300
summary:
 Issue #27301: Fixed incorrect return code for error in compile.c.
files:
 Python/compile.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/compile.c b/Python/compile.c
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1889,7 +1889,7 @@
 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;
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /