diff sat/plugins/plugin_xep_0071.py @ 2780:85d3240a400f

plugin text syntaxes: changed import name to TEXT_SYNTAX (better with underscore for autocompletion)
author Goffi <goffi@goffi.org>
date Sat, 19 Jan 2019 11:39:02 +0100
parents 003b8b4b56a7
children ab2696e34d29
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0071.py	Sat Jan 19 11:38:54 2019 +0100
+++ b/sat/plugins/plugin_xep_0071.py	Sat Jan 19 11:39:02 2019 +0100
@@ -49,7 +49,7 @@
     C.PI_IMPORT_NAME: "XEP-0071",
     C.PI_TYPE: "XEP",
     C.PI_PROTOCOLS: ["XEP-0071"],
-    C.PI_DEPENDENCIES: ["TEXT-SYNTAXES"],
+    C.PI_DEPENDENCIES: ["TEXT_SYNTAXES"],
     C.PI_MAIN: "XEP_0071",
     C.PI_HANDLER: "yes",
     C.PI_DESCRIPTION: _("""Implementation of XHTML-IM"""),
@@ -93,7 +93,7 @@
     def __init__(self, host):
         log.info(_("XHTML-IM plugin initialization"))
         self.host = host
-        self._s = self.host.plugins["TEXT-SYNTAXES"]
+        self._s = self.host.plugins["TEXT_SYNTAXES"]
         self._s.addSyntax(
             self.SYNTAX_XHTML_IM,
             lambda xhtml: xhtml,