Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().

This commit is contained in:
Georg Brandl 2012-06-23 12:48:40 +02:00
parent 93648f033b
commit 5bb7aa986e
1 changed files with 1 additions and 1 deletions

View File

@ -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