Kaydet (Commit) 5bb7aa98 authored tarafından Georg Brandl's avatar Georg Brandl

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

Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().
üst 93648f03
...@@ -2430,7 +2430,7 @@ posix_access(PyObject *self, PyObject *args, PyObject *kwargs) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment