[Python-checkins] cpython (3.4): asyncio.unix_events: Move import statement to match tulip code
yury.selivanov
python-checkins at python.org
Thu Sep 25 05:22:37 CEST 2014
https://hg.python.org/cpython/rev/7b962b896f10
changeset: 92572:7b962b896f10
branch: 3.4
parent: 92569:8ce21ffc6df5
user: Yury Selivanov <yselivanov at sprymix.com>
date: Wed Sep 24 23:21:39 2014 -0400
summary:
asyncio.unix_events: Move import statement to match tulip code
files:
Lib/asyncio/unix_events.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
--- 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 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list