Kaydet (Commit) 5d0a790f authored tarafından Yury Selivanov's avatar Yury Selivanov

asyncio.unix_events: Move import statement to match code in tulip

üst 64b2a94f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment