Use Py_RETURN_FALSE/Py_RETURN_TRUE rather than PyBool_FromLong(0)/PyBool_FromLong(1). (#567)

This commit is contained in:
Serhiy Storchaka 2017-03-08 20:47:48 +02:00 committed by GitHub
parent f7eda3882e
commit 370fd202f1
2 changed files with 26 additions and 26 deletions

View file

@ -240,7 +240,7 @@ _imp_lock_held_impl(PyObject *module)
#ifdef WITH_THREAD
return PyBool_FromLong(import_lock_thread != -1);
#else
return PyBool_FromLong(0);
Py_RETURN_FALSE;
#endif
}