We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079fc7f commit f0f55a0Copy full SHA for f0f55a0
2 files changed
Lib/_pyio.py
@@ -8,12 +8,13 @@
8
import errno
9
import array
10
import stat
11
+import sys
12
# Import _thread instead of threading to reduce startup cost
13
try:
14
from _thread import allocate_lock as Lock
15
except ImportError:
16
from _dummy_thread import allocate_lock as Lock
-if os.name == 'win32':
17
+if sys.platform in {'win32', 'cygwin'}:
18
from msvcrt import setmode as _setmode
19
else:
20
_setmode = None
Misc/NEWS
@@ -14,6 +14,9 @@ Core and Builtins
Library
-------
+- Issue #24881: Fixed setting binary mode in Python implementation of FileIO
+ on Windows and Cygwin. Patch from Akira Li.
+
- Issue #21112: Fix regression in unittest.expectedFailure on subclasses.
21
Patch from Berker Peksag.
22
0 commit comments