mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -2430,7 +2430,7 @@ posix_access(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
*/
|
*/
|
||||||
return_value = PyBool_FromLong(
|
return_value = PyBool_FromLong(
|
||||||
(attr != 0xFFFFFFFF) &&
|
(attr != 0xFFFFFFFF) &&
|
||||||
((mode & 2) ||
|
(!(mode & 2) ||
|
||||||
!(attr & FILE_ATTRIBUTE_READONLY) ||
|
!(attr & FILE_ATTRIBUTE_READONLY) ||
|
||||||
(attr & FILE_ATTRIBUTE_DIRECTORY)));
|
(attr & FILE_ATTRIBUTE_DIRECTORY)));
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue