diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-08 18:47:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 18:47:48 (GMT) |
commit | 370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0 (patch) | |
tree | af8e8ecd59abc94756f4f88aa4335b804a673cbc /Python | |
parent | f7eda3882e2fa989330d71c098d3b625bb2749d3 (diff) | |
download | cpython-370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0.zip cpython-370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0.tar.gz cpython-370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0.tar.bz2 |
Use Py_RETURN_FALSE/Py_RETURN_TRUE rather than PyBool_FromLong(0)/PyBool_FromLong(1). (#567)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 53c0f4d..0fc4d1d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 } |