Skip to content

Commit 8c0e0ab

Browse files
committed
asyncio.unix_events: Move import statement to match tulip code
1 parent efd713b commit 8c0e0ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/asyncio/unix_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Selector event loop for Unix with signal handling."""
22

33
import errno
4-
import fcntl
54
import os
65
import signal
76
import socket
@@ -263,6 +262,8 @@ def create_unix_server(self, protocol_factory, path=None, *,
263262
def _set_nonblocking(fd):
264263
os.set_blocking(fd, False)
265264
else:
265+
import fcntl
266+
266267
def _set_nonblocking(fd):
267268
flags = fcntl.fcntl(fd, fcntl.F_GETFL)
268269
flags = flags | os.O_NONBLOCK

0 commit comments

Comments
 (0)