Skip to content

Commit 1441f2f

Browse files
authored
gh-149879: Don't import msvcrt in _pyio on Cygwin (#149899)
The msvcrt extension module cannot be built on Cygwin.
1 parent c92ef3a commit 1441f2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111
# Import _thread instead of threading to reduce startup cost
1212
from _thread import allocate_lock as Lock
13-
if sys.platform in {'win32', 'cygwin'}:
13+
if sys.platform == 'win32':
1414
from msvcrt import setmode as _setmode
1515
else:
1616
_setmode = None

0 commit comments

Comments
 (0)