mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
SF bug 601775 - some int results that should be bool.
This commit is contained in:
parent
29a6d449ef
commit
674deb2eea
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue