[Python-checkins] cpython: bump Python-ast.c

benjamin.peterson python-checkins at python.org
Tue Mar 19 07:41:02 CET 2013


http://hg.python.org/cpython/rev/cc7a94efb1b7
changeset:   82750:cc7a94efb1b7
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Mar 18 23:40:53 2013 -0700
summary:
  bump Python-ast.c

files:
  Python/Python-ast.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Python/Python-ast.c b/Python/Python-ast.c
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -772,12 +772,13 @@
 
 static int exists_not_none(PyObject *obj, _Py_Identifier *id)
 {
+    int isnone;
     PyObject *attr = _PyObject_GetAttrId(obj, id);
     if (!attr) {
         PyErr_Clear();
         return 0;
     }
-    int isnone = attr == Py_None;
+    isnone = attr == Py_None;
     Py_DECREF(attr);
     return !isnone;
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list