From 3a61943b7bd9031293aa03b6505cb29d5630abfa Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 18 Mar 2013 23:40:53 -0700 Subject: [PATCH] bump Python-ast.c --- Python/Python-ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0