[Python-checkins] cpython: asyncio.unix_events: Move import statement to match code in tulip

yury.selivanov python-checkins at python.org
Thu Sep 25 05:22:37 CEST 2014


https://hg.python.org/cpython/rev/c2a485169f48
changeset: 92573:c2a485169f48
parent: 92570:7d6297450943
user: Yury Selivanov <yselivanov at sprymix.com>
date: Wed Sep 24 23:22:26 2014 -0400
summary:
 asyncio.unix_events: Move import statement to match code in tulip
files:
 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
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -262,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

AltStyle によって変換されたページ (->オリジナル) /