summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-10-20 01:43:58 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-10-20 01:43:58 (GMT)
commit557c76c136ad1ebe3e48049289c96a3e8eae69be (patch)
tree2967d3aa73319a24071be149cc8e087a4381694a /Python
parent62b4136277e42ab7523c4c74e0033c59ad363d2b (diff)
downloadcpython-557c76c136ad1ebe3e48049289c96a3e8eae69be.zip
cpython-557c76c136ad1ebe3e48049289c96a3e8eae69be.tar.gz
cpython-557c76c136ad1ebe3e48049289c96a3e8eae69be.tar.bz2
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 4695c96..f655e51 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);