mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Use Py_RETURN_FALSE/Py_RETURN_TRUE rather than PyBool_FromLong(0)/PyBool_FromLong(1). (#567)
This commit is contained in:
parent
f7eda3882e
commit
370fd202f1
2 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue