diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 80537cecd2a..4c7bb35a927 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -931,12 +931,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; }