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

This commit is contained in:
Yury Selivanov 2014-09-24 23:22:26 -04:00
parent 64b2a94f10
commit 5d0a790fc8
1 changed files with 2 additions and 0 deletions

View File

@ -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