mirror of
https://github.com/python/cpython.git
synced 2026-06-05 01:10:53 +00:00
gh-149879: Don't import msvcrt in _pyio on Cygwin (#149899)
The msvcrt extension module cannot be built on Cygwin.
This commit is contained in:
parent
c92ef3a6de
commit
1441f2f735
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
import sys
|
||||
# Import _thread instead of threading to reduce startup cost
|
||||
from _thread import allocate_lock as Lock
|
||||
if sys.platform in {'win32', 'cygwin'}:
|
||||
if sys.platform == 'win32':
|
||||
from msvcrt import setmode as _setmode
|
||||
else:
|
||||
_setmode = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue