summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-08 18:47:48 (GMT)
committerGitHub <noreply@github.com>2017-03-08 18:47:48 (GMT)
commit370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0 (patch)
treeaf8e8ecd59abc94756f4f88aa4335b804a673cbc /Python
parentf7eda3882e2fa989330d71c098d3b625bb2749d3 (diff)
downloadcpython-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.c2
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
}