Mercurial > cpython-lru_cache-weakref
diff Modules/posixmodule.c @ 25087:9a178adb4e2d legacy-trunk
SF bug 601775 - some int results that should be bool.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 01 Sep 2002 15:06:28 +0000 |
| parents | c4e550702a29 |
| children | 038711ae13e0 |
line wrap: on
line diff
--- a/Modules/posixmodule.c Sat Aug 31 15:51:04 2002 +0000 +++ b/Modules/posixmodule.c Sun Sep 01 15:06:28 2002 +0000 @@ -756,7 +756,7 @@ Py_BEGIN_ALLOW_THREADS res = access(path, mode); Py_END_ALLOW_THREADS - return(PyInt_FromLong(res == 0 ? 1L : 0L)); + return(PyBool_FromLong(res == 0)); } #ifndef F_OK
