Kaydet (Commit) 7654ab9e authored tarafından Benjamin Peterson's avatar Benjamin Peterson

placate msvc

üst dc41f552
......@@ -931,12 +931,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment