diff options
| author | 2014-07-14 16:10:01 +0200 | |
|---|---|---|
| committer | 2014-07-15 16:26:07 +0200 | |
| commit | 7b8c458cca7d21a029620f98e453f746fce69cd1 (patch) | |
| tree | 9e97b0003a00ff8ac9ee6b777d94bb998c911d05 /module/plugins/hooks/XMPPInterface.py | |
| parent | Fix code indentation, some bad whitespaces and missing authors + use 'not' in... (diff) | |
| download | pyload-7b8c458cca7d21a029620f98e453f746fce69cd1.tar.xz | |
Prefer single quote for dict key name
Diffstat (limited to 'module/plugins/hooks/XMPPInterface.py')
| -rw-r--r-- | module/plugins/hooks/XMPPInterface.py | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index 57a997a4b..a60d31b89 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -121,9 +121,7 @@ class XMPPInterface(IRCInterface, JabberClient):          The handlers returned will be called when matching message is received          in a client session.""" -        return [ -            ("normal", self.message), -        ] +        return [("normal", self.message)]      def message(self, stanza):          """Message handler for the component.""" @@ -231,9 +229,7 @@ class VersionHandler(object):      def get_iq_get_handlers(self):          """Return list of tuples (element_name, namespace, handler) describing          handlers of <iq type='get'/> stanzas""" -        return [ -            ("query", "jabber:iq:version", self.get_version), -        ] +        return [("query", "jabber:iq:version", self.get_version)]      def get_iq_set_handlers(self):          """Return empty list, as this class provides no <iq type='set'/> stanza handler.""" | 
