Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 79845:e829d644d366 3.2
Fix compilation on Windows
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sat, 20 Oct 2012 11:43:58 +1000 |
| parents | 1856d57abfc8 |
| children | ee0c0f1c1eb2 |
line wrap: on
line diff
--- a/Python/import.c Sat Oct 20 00:03:46 2012 +1000 +++ b/Python/import.c Sat Oct 20 11:43:58 2012 +1000 @@ -1172,6 +1172,7 @@ FILE *fp; char *dirpath; time_t mtime = srcstat->st_mtime; + int saved; #ifdef MS_WINDOWS /* since Windows uses different permissions */ mode_t mode = srcstat->st_mode & ~S_IEXEC; /* Issue #6074: We ensure user write access, so we can delete it later @@ -1186,7 +1187,6 @@ S_IXUSR | S_IXGRP | S_IXOTH | S_IWUSR | S_IWGRP | S_IWOTH); #endif - int saved; /* Ensure that the __pycache__ directory exists. */ dirpath = rightmost_sep(cpathname);
