[Python-checkins] cpython (3.2): Fix compilation on Windows

nick.coghlan python-checkins at python.org
Sat Oct 20 03:45:33 CEST 2012


http://hg.python.org/cpython/rev/e829d644d366
changeset:   79845:e829d644d366
branch:      3.2
parent:      79840:d459a9576d6c
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Sat Oct 20 11:43:58 2012 +1000
summary:
  Fix compilation on Windows

files:
  Python/import.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list