We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7043ee0 commit 1bf1c74Copy full SHA for 1bf1c74
uasyncio/uasyncio/__init__.py
@@ -1,4 +1,4 @@
1
-import errno
+import uerrno
2
import uselect as select
3
import usocket as _socket
4
from uasyncio.core import *
@@ -48,7 +48,7 @@ def remove_writer(self, sock):
48
# and if that succeeds, yield IOWrite may never be called
49
# for that socket, and it will never be added to poller. So,
50
# ignore such error.
51
- if e.args[0] != errno.ENOENT:
+ if e.args[0] != uerrno.ENOENT:
52
raise
53
54
def wait(self, delay):
@@ -183,7 +183,7 @@ def open_connection(host, port):
183
try:
184
s.connect(addr)
185
except OSError as e:
186
- if e.args[0] != errno.EINPROGRESS:
+ if e.args[0] != uerrno.EINPROGRESS:
187
188
if __debug__:
189
log.debug("open_connection: After connect")
0 commit comments