teepty windows fix

This commit is contained in:
Anthony Scopatz 2016-07-18 21:15:49 -04:00
parent ace63d5920
commit cf97e3a00d

View file

@ -12,7 +12,6 @@ import os
import sys
import time
import array
import fcntl
import select
import signal
import tempfile
@ -48,6 +47,15 @@ def termios():
else:
return importlib.import_module('termios')
@lazyobject
def fcntl():
if ON_WINDOWS:
return
else:
return importlib.import_module('fcntl')
# The following escape codes are xterm codes.
# See http://rtfm.etla.org/xterm/ctlseq.html for more.
MODE_NUMS = ('1049', '47', '1047')