Skip to content

Commit b88723b

Browse files
committed
remove use of u* modules
1 parent 1f7562d commit b88723b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

asyncio/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def wait(self):
6969
# that asyncio will poll until a flag is set.
7070
# Note: Unlike Event, this is self-clearing.
7171
try:
72-
import uio
72+
import io
7373

7474
class ThreadSafeFlag(uio.IOBase):
7575
def __init__(self):

asyncio/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async def open_connection(host, port):
150150
"""
151151

152152
from uerrno import EINPROGRESS
153-
import usocket as socket
153+
import socket
154154

155155
ai = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)[0] # TODO this is blocking!
156156
s = socket.socket(ai[0], ai[1], ai[2])
@@ -222,7 +222,7 @@ async def start_server(cb, host, port, backlog=5):
222222
This is a coroutine.
223223
"""
224224

225-
import usocket as socket
225+
import socket
226226

227227
# Create and bind server socket.
228228
host = socket.getaddrinfo(host, port)[0] # TODO this is blocking!

0 commit comments

Comments
 (0)