Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc41f55 commit 7654ab9Copy full SHA for 7654ab9
1 file changed
Parser/asdl_c.py
@@ -931,12 +931,13 @@ def visitModule(self, mod):
931
932
static int exists_not_none(PyObject *obj, _Py_Identifier *id)
933
{
934
+ int isnone;
935
PyObject *attr = _PyObject_GetAttrId(obj, id);
936
if (!attr) {
937
PyErr_Clear();
938
return 0;
939
}
- int isnone = attr == Py_None;
940
+ isnone = attr == Py_None;
941
Py_DECREF(attr);
942
return !isnone;
943
0 commit comments