Commit b5287ab0 authored by Guido van Rossum's avatar Guido van Rossum

Remove unused argument in poll(). Fix comment in pending().

parent 311ce18c
......@@ -386,7 +386,7 @@ class Connection(smac.SizedMessageAsyncConnection):
finally:
self.__replies_cond.release()
def poll(self, wait_for_reply=0):
def poll(self):
"""Invoke asyncore mainloop to get pending message out."""
if __debug__:
log("poll(), async=%d" % self.is_async(), level=zLOG.TRACE)
......@@ -402,7 +402,7 @@ class Connection(smac.SizedMessageAsyncConnection):
if self.is_async():
return
# Inline the asyncore poll3 function to know whether any input
# was actually read. Repeat until know input is ready.
# was actually read. Repeat until no input is ready.
# XXX This only does reads.
poll = select.poll()
poll.register(self._fileno, select.POLLIN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment