mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-32154: Remove asyncio.windows_utils.socketpair (#4609)
This commit is contained in:
parent
4d193bcc25
commit
ac577d7d0b
9 changed files with 21 additions and 123 deletions
|
|
@ -967,10 +967,7 @@ Wait until a file descriptor received some data using the
|
|||
:meth:`AbstractEventLoop.add_reader` method and then close the event loop::
|
||||
|
||||
import asyncio
|
||||
try:
|
||||
from socket import socketpair
|
||||
except ImportError:
|
||||
from asyncio.windows_utils import socketpair
|
||||
from socket import socketpair
|
||||
|
||||
# Create a pair of connected file descriptors
|
||||
rsock, wsock = socketpair()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue