commit | 5bb7aa986efef3c11a68ff2b5a22c6a28c014835 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Jun 23 12:48:40 2012 +0200 |
committer | Georg Brandl <georg@python.org> | Sat Jun 23 12:48:40 2012 +0200 |
tree | 696e61446f12eb70f8d2cbb6007cb3e6b0244162 | |
parent | 93648f033b4da831f9412b365c10a49ead7a6937 [diff] |
Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().
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 @@ */ return_value = PyBool_FromLong( (attr != 0xFFFFFFFF) && - ((mode & 2) || + (!(mode & 2) || !(attr & FILE_ATTRIBUTE_READONLY) || (attr & FILE_ATTRIBUTE_DIRECTORY))); #else