Commit eb88300e authored by Yann Leboulanger's avatar Yann Leboulanger

adapt different comment styles to make them equal

parent ece53ebd
...@@ -663,7 +663,7 @@ class NonBlockingBind(PlugIn): ...@@ -663,7 +663,7 @@ class NonBlockingBind(PlugIn):
self.resuming = False self.resuming = False
def plugin(self, owner): def plugin(self, owner):
''' Start resource binding, if allowed at this time. Used internally. ''' """ Start resource binding, if allowed at this time. Used internally. """
if self._owner.Dispatcher.Stream.features: if self._owner.Dispatcher.Stream.features:
try: try:
self.FeaturesHandler(self._owner.Dispatcher, self.FeaturesHandler(self._owner.Dispatcher,
......
...@@ -160,6 +160,7 @@ class NonBlockingClient: ...@@ -160,6 +160,7 @@ class NonBlockingClient:
:param port: port number of XMPP server :param port: port number of XMPP server
:param on_proxy_failure: called if error occurs during TCP connection :param on_proxy_failure: called if error occurs during TCP connection
to proxy server or during proxy connecting process to proxy server or during proxy connecting process
:param on_stream_error_cb: called if error occurs
:param proxy: dictionary with proxy data. It should contain at least :param proxy: dictionary with proxy data. It should contain at least
values for keys 'host' and 'port' - connection details for proxy values for keys 'host' and 'port' - connection details for proxy
serve and optionally keys 'user' and 'pass' as proxy credentials serve and optionally keys 'user' and 'pass' as proxy credentials
......
...@@ -298,6 +298,7 @@ class XMPPDispatcher(PlugIn): ...@@ -298,6 +298,7 @@ class XMPPDispatcher(PlugIn):
:param typ: value of stanza's "type" attribute. If not specified any :param typ: value of stanza's "type" attribute. If not specified any
value will match value will match
:param ns: namespace of child that stanza must contain. :param ns: namespace of child that stanza must contain.
:param xmlns: xml namespace
:param makefirst: insert handler in the beginning of handlers list instead :param makefirst: insert handler in the beginning of handlers list instead
of adding it to the end. Note that more common handlers i.e. w/o "typ" of adding it to the end. Note that more common handlers i.e. w/o "typ"
and " will be called first nevertheless. and " will be called first nevertheless.
......
...@@ -213,6 +213,6 @@ def setPrivacyList(disp, listname, tags): ...@@ -213,6 +213,6 @@ def setPrivacyList(disp, listname, tags):
_on_default_response(disp, iq, None) _on_default_response(disp, iq, None)
def delPrivacyList(disp, listname, cb=None): def delPrivacyList(disp, listname, cb=None):
''' Deletes privacy list 'listname'. Returns true on success. ''' """ Deletes privacy list 'listname'. Returns true on success. """
iq = Iq('set', NS_PRIVACY, payload=[Node('list', {'name':listname})]) iq = Iq('set', NS_PRIVACY, payload=[Node('list', {'name':listname})])
_on_default_response(disp, iq, cb) _on_default_response(disp, iq, cb)
...@@ -94,11 +94,11 @@ class Smacks(): ...@@ -94,11 +94,11 @@ class Smacks():
self._owner.Connection.send(r, False) self._owner.Connection.send(r, False)
def check_ack(self, disp, stanza): def check_ack(self, disp, stanza):
''' """
Checks if the number of stanzas sent are the same as the Checks if the number of stanzas sent are the same as the
number of stanzas received by the server. Pops stanzas that were number of stanzas received by the server. Pops stanzas that were
handled by the server from the queue. handled by the server from the queue.
''' """
h = stanza.getAttr('h') h = stanza.getAttr('h')
if not h: if not h:
log.error('Server did not send h attribute') log.error('Server did not send h attribute')
...@@ -118,11 +118,11 @@ class Smacks(): ...@@ -118,11 +118,11 @@ class Smacks():
self.uqueue.pop(0) self.uqueue.pop(0)
def check_resume(self, disp, stanza): def check_resume(self, disp, stanza):
''' """
Checks if the number of stanzas sent are the same as the Checks if the number of stanzas sent are the same as the
number of stanzas received by the server. Resends stanzas not received number of stanzas received by the server. Resends stanzas not received
by the server in the last session. by the server in the last session.
''' """
h = stanza.getAttr('h') h = stanza.getAttr('h')
if not h: if not h:
log.error('Server did not send h attribute') log.error('Server did not send h attribute')
......
...@@ -158,7 +158,7 @@ class PyOpenSSLWrapper(SSLWrapper): ...@@ -158,7 +158,7 @@ class PyOpenSSLWrapper(SSLWrapper):
self.parent.__init__(self, *args) self.parent.__init__(self, *args)
def is_numtoolarge(self, e): def is_numtoolarge(self, e):
''' Magic methods don't need documentation ''' """ Magic methods don't need documentation """
t = ('asn1 encoding routines', 'a2d_ASN1_OBJECT', 'first num too large') t = ('asn1 encoding routines', 'a2d_ASN1_OBJECT', 'first num too large')
return (isinstance(e.args, (list, tuple)) and len(e.args) == 1 and return (isinstance(e.args, (list, tuple)) and len(e.args) == 1 and
isinstance(e.args[0], (list, tuple)) and len(e.args[0]) == 2 and isinstance(e.args[0], (list, tuple)) and len(e.args[0]) == 2 and
......
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