diff options
author | Georg Brandl <georg@python.org> | 2012-06-23 10:48:40 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-06-23 10:48:40 (GMT) |
commit | 5bb7aa986efef3c11a68ff2b5a22c6a28c014835 (patch) | |
tree | 696e61446f12eb70f8d2cbb6007cb3e6b0244162 /Modules/posixmodule.c | |
parent | 93648f033b4da831f9412b365c10a49ead7a6937 (diff) | |
download | cpython-5bb7aa986efef3c11a68ff2b5a22c6a28c014835.zip cpython-5bb7aa986efef3c11a68ff2b5a22c6a28c014835.tar.gz cpython-5bb7aa986efef3c11a68ff2b5a22c6a28c014835.tar.bz2 |
Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 1f1711d..30b797c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 |