Fix some documentation typos.

This commit is contained in:
Lance Stout 2010-08-27 18:16:09 -04:00
parent 89fb15e896
commit f5ae27da4f
2 changed files with 9 additions and 1 deletions

View file

@ -38,7 +38,7 @@ class Callback(BaseHandler):
name -- The name of the handler. name -- The name of the handler.
matcher -- A matcher object for matching stanza objects. matcher -- A matcher object for matching stanza objects.
pointer -- The function to execute during callback. pointer -- The function to execute during callback.
threaded -- DEPRECATED. Remains only for backwards compatibility. thread -- DEPRECATED. Remains only for backwards compatibility.
once -- Indicates if the handler should be used only once -- Indicates if the handler should be used only
once. Defaults to False. once. Defaults to False.
instream -- Indicates if the callback should be executed instream -- Indicates if the callback should be executed

View file

@ -33,6 +33,14 @@ class Waiter(BaseHandler):
""" """
def __init__(self, name, matcher, stream=None): def __init__(self, name, matcher, stream=None):
"""
Create a new Waiter.
Arguments:
name -- The name of the waiter.
matcher -- A matcher object to detect the desired stanza.
stream -- Optional XMLStream instance to monitor.
"""
BaseHandler.__init__(self, name, matcher) BaseHandler.__init__(self, name, matcher)
self._payload = queue.Queue() self._payload = queue.Queue()