summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 4d0cdbb9f9..d921d74405 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -693,8 +693,11 @@ open_exclusive(char *filename)
#ifdef O_BINARY
|O_BINARY /* necessary for Windows */
#endif
-
- , 0666);
+#ifdef __VMS
+ , 0666, "ctxt=bin", "shr=nil");
+#else
+ , 0666);
+#endif
if (fd < 0)
return NULL;
return fdopen(fd, "wb");