diff options
Diffstat (limited to 'slixmpp/plugins/xep_0258/stanza.py')
-rw-r--r-- | slixmpp/plugins/xep_0258/stanza.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0258/stanza.py b/slixmpp/plugins/xep_0258/stanza.py index e47bd34f..c0c7080c 100644 --- a/slixmpp/plugins/xep_0258/stanza.py +++ b/slixmpp/plugins/xep_0258/stanza.py @@ -8,6 +8,7 @@ from base64 import b64encode, b64decode +from slixmpp import JID from slixmpp.util import bytes from slixmpp.xmlstream import ElementBase, ET, register_stanza_plugin @@ -33,7 +34,7 @@ class DisplayMarking(ElementBase): name = 'displaymarking' namespace = 'urn:xmpp:sec-label:0' plugin_attrib = 'display_marking' - interfaces = set(['fgcolor', 'bgcolor', 'value']) + interfaces = {'fgcolor', 'bgcolor', 'value'} def get_fgcolor(self): return self._get_attr('fgcolor', 'black') @@ -62,7 +63,7 @@ class Catalog(ElementBase): name = 'catalog' namespace = 'urn:xmpp:sec-label:catalog:2' plugin_attrib = 'security_label_catalog' - interfaces = set(['to', 'from', 'name', 'desc', 'id', 'size', 'restrict']) + interfaces = {'to', 'from', 'name', 'desc', 'id', 'size', 'restrict'} def get_to(self): return JID(self._get_attr('to')) @@ -96,7 +97,7 @@ class CatalogItem(ElementBase): namespace = 'urn:xmpp:sec-label:catalog:2' plugin_attrib = 'item' plugin_multi_attrib = 'items' - interfaces = set(['selector', 'default']) + interfaces = {'selector', 'default'} def get_default(self): value = self._get_attr('default', '') @@ -116,7 +117,7 @@ class ESSLabel(ElementBase): name = 'esssecuritylabel' namespace = 'urn:xmpp:sec-label:ess:0' plugin_attrib = 'ess' - interfaces = set(['value']) + interfaces = {'value'} def get_value(self): if self.xml.text: |