mirror of
https://github.com/python/cpython.git
synced 2026-06-10 13:17:28 -04:00
asyncio.unix_events: Move import statement to match code in tulip
This commit is contained in:
@@ -262,6 +262,8 @@ if hasattr(os, 'set_blocking'):
|
||||
def _set_nonblocking(fd):
|
||||
os.set_blocking(fd, False)
|
||||
else:
|
||||
import fcntl
|
||||
|
||||
def _set_nonblocking(fd):
|
||||
flags = fcntl.fcntl(fd, fcntl.F_GETFL)
|
||||
flags = flags | os.O_NONBLOCK
|
||||
|
||||
Reference in New Issue
Block a user