diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-03-18 23:40:53 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-03-18 23:40:53 -0700 |
commit | 862cca369c640a091c5ce62d4b84913d92cb2c4c (patch) | |
tree | 5543841e92aab6ba329df77f452ecec003b659e6 /Python/Python-ast.c | |
parent | 6e5a41b82121191b2f1a937adcb4bfb52512348e (diff) | |
download | cpython-862cca369c640a091c5ce62d4b84913d92cb2c4c.tar.gz |
bump Python-ast.c
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |