diff options
author | Guido van Rossum <guido@python.org> | 2002-09-01 15:06:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-09-01 15:06:28 (GMT) |
commit | 674deb2eeaeb8358415457413502e3b5851a7010 (patch) | |
tree | 5811a5f6c9c6aebca97ef685f74597138532263b /Modules/posixmodule.c | |
parent | 29a6d449ef8ea42009215318f8d43a569aed2cf7 (diff) | |
download | cpython-674deb2eeaeb8358415457413502e3b5851a7010.zip cpython-674deb2eeaeb8358415457413502e3b5851a7010.tar.gz cpython-674deb2eeaeb8358415457413502e3b5851a7010.tar.bz2 |
SF bug 601775 - some int results that should be bool.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0ce235a..9885b14 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -756,7 +756,7 @@ posix_access(PyObject *self, PyObject *args) 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 |