asyncio.unix_events: Move import statement to match code in tulip
This commit is contained in:
parent
64b2a94f10
commit
5d0a790fc8
|
@ -262,6 +262,8 @@ if hasattr(os, 'set_blocking'):
|
||||||
def _set_nonblocking(fd):
|
def _set_nonblocking(fd):
|
||||||
os.set_blocking(fd, False)
|
os.set_blocking(fd, False)
|
||||||
else:
|
else:
|
||||||
|
import fcntl
|
||||||
|
|
||||||
def _set_nonblocking(fd):
|
def _set_nonblocking(fd):
|
||||||
flags = fcntl.fcntl(fd, fcntl.F_GETFL)
|
flags = fcntl.fcntl(fd, fcntl.F_GETFL)
|
||||||
flags = flags | os.O_NONBLOCK
|
flags = flags | os.O_NONBLOCK
|
||||||
|
|
Loading…
Reference in New Issue