From: Benjamin Peterson Date: Tue, 19 Mar 2013 06:40:53 +0000 (-0700) Subject: bump Python-ast.c X-Git-Tag: v3.4.0a1~1166 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a61943b7bd9031293aa03b6505cb29d5630abfa;p=python bump Python-ast.c --- diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 5923962c38..6632001c0e 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -772,12 +772,13 @@ static int add_ast_fields(void) 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; }