kopia lustrzana https://github.com/micropython/micropython-lib
select: Update for os.errno_ refactor.
rodzic
b255da4a83
commit
0a6710ecd1
|
@ -53,7 +53,7 @@ class Epoll:
|
|||
retval = fd
|
||||
s = struct.pack(epoll_event, eventmask, retval)
|
||||
r = epoll_ctl(self.epfd, EPOLL_CTL_ADD, fd, s)
|
||||
if r == -1 and os.errno_.get() == errno.EEXIST:
|
||||
if r == -1 and os.errno_() == errno.EEXIST:
|
||||
r = epoll_ctl(self.epfd, EPOLL_CTL_MOD, fd, s)
|
||||
os.check_error(r)
|
||||
# We must keep reference to retval, or it may be GCed. And we must
|
||||
|
|
Ładowanie…
Reference in New Issue