Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0334.py @ 2698:5060cbeec01e
core: minor style/typos fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Dec 2018 10:04:17 +0100 |
parents | baccc27d5c5c |
children | 003b8b4b56a7 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0334.py Sat Dec 01 09:59:48 2018 +0100 +++ b/sat/plugins/plugin_xep_0334.py Sat Dec 01 10:04:17 2018 +0100 @@ -28,10 +28,7 @@ from wokkel import disco, iwokkel -try: - from twisted.words.protocols.xmlstream import XMPPHandler -except ImportError: - from wokkel.subprotocols import XMPPHandler +from twisted.words.protocols.jabber import xmlstream from zope.interface import implements from textwrap import dedent @@ -127,7 +124,7 @@ return True -class XEP_0334_handler(XMPPHandler): +class XEP_0334_handler(xmlstream.XMPPHandler): implements(iwokkel.IDisco) def getDiscoInfo(self, requestor, target, nodeIdentifier=""):