summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-19 06:39:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-19 06:39:53 (GMT)
commit7654ab9ef048b565de7850d313d21ed8cfb43f2c (patch)
tree8441431fa4d27387a65ad702863cc4291f133baa /Parser
parentdc41f552a2f1ba16e6a2fb2771ce127e3c693b40 (diff)
downloadcpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.zip
cpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.tar.gz
cpython-7654ab9ef048b565de7850d313d21ed8cfb43f2c.tar.bz2
placate msvc
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py3
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;
}