diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-24 23:22:26 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-24 23:22:26 -0400 |
commit | 5d0a790fc8fcbdfa095950db5f05df01cef7d877 (patch) | |
tree | fdfd1ed8e83d27c2e19d241256868d3e4e68a191 /Lib/asyncio | |
parent | 64b2a94f1032f5a2b262ab4540e39c0b9c0bf207 (diff) | |
download | cpython-git-5d0a790fc8fcbdfa095950db5f05df01cef7d877.tar.gz |
asyncio.unix_events: Move import statement to match code in tulip
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |