mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Fix compilation on Windows
This commit is contained in:
parent
62b4136277
commit
557c76c136
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue