I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 669a8fae authored by duck's avatar duck Committed by zzz
Browse files

iterate through the dict values

(thanks dinoman)
parent d5929368
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class Poll: ...@@ -40,7 +40,7 @@ class Poll:
del self.fds[self._hash(fd)] del self.fds[self._hash(fd)]
def poll(self, timeout=None): def poll(self, timeout=None):
readlist, writelist, errlist = [], [], [] readlist, writelist, errlist = [], [], []
for F, mask in self.fds: for F, mask in self.fds.values():
if mask & POLLIN: readlist += [F] if mask & POLLIN: readlist += [F]
if mask & POLLOUT: writelist += [F] if mask & POLLOUT: writelist += [F]
if mask & POLLERR: errlist += [F] if mask & POLLERR: errlist += [F]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment