summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-09-25 03:21:39 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-09-25 03:21:39 (GMT)
commit8c0e0ab767f0d6f8395d8c317b08977563b70d41 (patch)
tree9e80e9cf3e9ab9d85f733fac870b22eb57e710f1 /Lib/asyncio
parentefd713b82b49db333a3a7edda450e69b53dc03ec (diff)
downloadcpython-8c0e0ab767f0d6f8395d8c317b08977563b70d41.zip
cpython-8c0e0ab767f0d6f8395d8c317b08977563b70d41.tar.gz
cpython-8c0e0ab767f0d6f8395d8c317b08977563b70d41.tar.bz2
asyncio.unix_events: Move import statement to match tulip code
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/unix_events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 37310cf..93c8c1c 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -1,7 +1,6 @@
"""Selector event loop for Unix with signal handling."""
import errno
-import fcntl
import os
import signal
import socket
@@ -263,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