mirror of https://github.com/python/cpython
Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().
This commit is contained in:
parent
93648f033b
commit
5bb7aa986e
|
@ -2430,7 +2430,7 @@ posix_access(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
*/
|
||||
return_value = PyBool_FromLong(
|
||||
(attr != 0xFFFFFFFF) &&
|
||||
((mode & 2) ||
|
||||
(!(mode & 2) ||
|
||||
!(attr & FILE_ATTRIBUTE_READONLY) ||
|
||||
(attr & FILE_ATTRIBUTE_DIRECTORY)));
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue