mirror of
https://github.com/python/cpython.git
synced 2026-02-26 09:01:08 +00:00
asyncio.unix_events: Move import statement to match code in tulip
This commit is contained in:
parent
64b2a94f10
commit
5d0a790fc8
1 changed files with 2 additions and 0 deletions
|
|
@ -262,6 +262,8 @@ def create_unix_server(self, protocol_factory, path=None, *,
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue