From: Yury Selivanov Date: Thu, 25 Sep 2014 03:22:26 +0000 (-0400) Subject: asyncio.unix_events: Move import statement to match code in tulip X-Git-Tag: v3.5.0a1~858 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d0a790fc8fcbdfa095950db5f05df01cef7d877;p=python asyncio.unix_events: Move import statement to match code in tulip --- diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 335a77d1bd..93c8c1c819 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -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