Skip to content

Commit 3a61943

Browse files
committed
bump Python-ast.c
1 parent 7654ab9 commit 3a61943

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/Python-ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,12 +772,13 @@ static int add_ast_fields(void)
772772

773773
static int exists_not_none(PyObject *obj, _Py_Identifier *id)
774774
{
775+
int isnone;
775776
PyObject *attr = _PyObject_GetAttrId(obj, id);
776777
if (!attr) {
777778
PyErr_Clear();
778779
return 0;
779780
}
780-
int isnone = attr == Py_None;
781+
isnone = attr == Py_None;
781782
Py_DECREF(attr);
782783
return !isnone;
783784
}

0 commit comments

Comments
 (0)