diff options
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 9b7640f..0ce235a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3476,7 +3476,7 @@ _PyPopen(char *cmdstring, int mode, int n) char *m1, *m2; PyObject *p1, *p2; - if (mode && _O_TEXT) { + if (mode & _O_TEXT) { m1 = "r"; m2 = "w"; } else { @@ -3508,7 +3508,7 @@ _PyPopen(char *cmdstring, int mode, int n) char *m1, *m2; PyObject *p1, *p2, *p3; - if (mode && _O_TEXT) { + if (mode & _O_TEXT) { m1 = "r"; m2 = "w"; } else { |