Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 55141:adfd6b73d364 legacy-trunk
Update issue 6070 patch to match the patch that was actually tested
on Windows.
| author | R. David Murray <rdmurray@bitdance.com> |
|---|---|
| date | Tue, 07 Jul 2009 09:54:16 +0000 |
| parents | e9fc8947c49a |
| children | 6c7b4b470827 |
line wrap: on
line diff
--- a/Python/import.c Tue Jul 07 09:01:34 2009 +0000 +++ b/Python/import.c Tue Jul 07 09:54:16 2009 +0000 @@ -881,7 +881,9 @@ { FILE *fp; time_t mtime = srcstat->st_mtime; -#ifndef MS_WINDOWS +#ifdef MS_WINDOWS /* since Windows uses different permissions */ + mode_t mode = srcstat->st_mode & ~S_IEXEC; +#else mode_t mode = srcstat->st_mode & ~S_IXUSR & ~S_IXGRP & ~S_IXOTH; #endif
