summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-10-20 11:43:58 +1000
committerNick Coghlan <ncoghlan@gmail.com>2012-10-20 11:43:58 +1000
commit226c598b3ffc8ef1ccecfd4dfef86c15a334cef9 (patch)
tree475758f7ce3415b2cf2713c55d9853b54b3b7579 /Python
parent8a2a82b6dbbd31ce3d7b3af8677978c2c230803b (diff)
downloadcpython-226c598b3ffc8ef1ccecfd4dfef86c15a334cef9.tar.gz
Fix compilation on Windows
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 4695c96970..f655e514d1 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1172,6 +1172,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
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 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
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);