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): ...@@ -386,7 +386,7 @@ class Connection(smac.SizedMessageAsyncConnection):
finally: finally:
self.__replies_cond.release() self.__replies_cond.release()
def poll(self, wait_for_reply=0): def poll(self):
"""Invoke asyncore mainloop to get pending message out.""" """Invoke asyncore mainloop to get pending message out."""
if __debug__: if __debug__:
log("poll(), async=%d" % self.is_async(), level=zLOG.TRACE) log("poll(), async=%d" % self.is_async(), level=zLOG.TRACE)
...@@ -402,7 +402,7 @@ class Connection(smac.SizedMessageAsyncConnection): ...@@ -402,7 +402,7 @@ class Connection(smac.SizedMessageAsyncConnection):
if self.is_async(): if self.is_async():
return return
# Inline the asyncore poll3 function to know whether any input # 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. # XXX This only does reads.
poll = select.poll() poll = select.poll()
poll.register(self._fileno, select.POLLIN) 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