diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-03-19 06:39:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-03-19 06:39:53 (GMT) |
commit | 7654ab9ef048b565de7850d313d21ed8cfb43f2c (patch) | |
tree | 8441431fa4d27387a65ad702863cc4291f133baa /Parser | |
parent | dc41f552a2f1ba16e6a2fb2771ce127e3c693b40 (diff) | |
download | cpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.zip cpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.tar.gz cpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.tar.bz2 |
placate msvc
Diffstat (limited to 'Parser')
-rwxr-xr-x | Parser/asdl_c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 80537ce..4c7bb35 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; } |