Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7654ab9

Browse files
committed
placate msvc
1 parent dc41f55 commit 7654ab9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Parser/asdl_c.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,13 @@ def visitModule(self, mod):
931931
932932
static int exists_not_none(PyObject *obj, _Py_Identifier *id)
933933
{
934+
int isnone;
934935
PyObject *attr = _PyObject_GetAttrId(obj, id);
935936
if (!attr) {
936937
PyErr_Clear();
937938
return 0;
938939
}
939-
int isnone = attr == Py_None;
940+
isnone = attr == Py_None;
940941
Py_DECREF(attr);
941942
return !isnone;
942943
}

0 commit comments

Comments
 (0)