summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-19 06:40:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-19 06:40:53 (GMT)
commit3a61943b7bd9031293aa03b6505cb29d5630abfa (patch)
tree81d589a8d20ddc4311ff03a1a8a12a18b302709f /Python
parent7654ab9ef048b565de7850d313d21ed8cfb43f2c (diff)
downloadcpython-3a61943b7bd9031293aa03b6505cb29d5630abfa.zip
cpython-3a61943b7bd9031293aa03b6505cb29d5630abfa.tar.gz
cpython-3a61943b7bd9031293aa03b6505cb29d5630abfa.tar.bz2
bump Python-ast.c
Diffstat (limited to 'Python')
-rw-r--r--Python/Python-ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 5923962..6632001 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;
}