summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0313
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0313')
-rw-r--r--slixmpp/plugins/xep_0313/mam.py2
-rw-r--r--slixmpp/plugins/xep_0313/stanza.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/slixmpp/plugins/xep_0313/mam.py b/slixmpp/plugins/xep_0313/mam.py
index d1c6b983..37aa49b4 100644
--- a/slixmpp/plugins/xep_0313/mam.py
+++ b/slixmpp/plugins/xep_0313/mam.py
@@ -29,7 +29,7 @@ class XEP_0313(BasePlugin):
name = 'xep_0313'
description = 'XEP-0313: Message Archive Management'
- dependencies = set(['xep_0030', 'xep_0050', 'xep_0059', 'xep_0297'])
+ dependencies = {'xep_0030', 'xep_0050', 'xep_0059', 'xep_0297'}
stanza = stanza
def plugin_init(self):
diff --git a/slixmpp/plugins/xep_0313/stanza.py b/slixmpp/plugins/xep_0313/stanza.py
index d7cfa222..a10ddf9b 100644
--- a/slixmpp/plugins/xep_0313/stanza.py
+++ b/slixmpp/plugins/xep_0313/stanza.py
@@ -17,8 +17,8 @@ class MAM(ElementBase):
name = 'query'
namespace = 'urn:xmpp:mam:tmp'
plugin_attrib = 'mam'
- interfaces = set(['queryid', 'start', 'end', 'with', 'results'])
- sub_interfaces = set(['start', 'end', 'with'])
+ interfaces = {'queryid', 'start', 'end', 'with', 'results'}
+ sub_interfaces = {'start', 'end', 'with'}
def setup(self, xml=None):
ElementBase.setup(self, xml)
@@ -66,8 +66,8 @@ class Preferences(ElementBase):
name = 'prefs'
namespace = 'urn:xmpp:mam:tmp'
plugin_attrib = 'mam_prefs'
- interfaces = set(['default', 'always', 'never'])
- sub_interfaces = set(['always', 'never'])
+ interfaces = {'default', 'always', 'never'}
+ sub_interfaces = {'always', 'never'}
def get_always(self):
results = set()
@@ -122,7 +122,7 @@ class Result(ElementBase):
name = 'result'
namespace = 'urn:xmpp:mam:tmp'
plugin_attrib = 'mam_result'
- interfaces = set(['queryid', 'id'])
+ interfaces = {'queryid', 'id'}
class Archived(ElementBase):
@@ -130,7 +130,7 @@ class Archived(ElementBase):
namespace = 'urn:xmpp:mam:tmp'
plugin_attrib = 'mam_archived'
plugin_multi_attrib = 'mam_archives'
- interfaces = set(['by', 'id'])
+ interfaces = {'by', 'id'}
def get_by(self):
return JID(self._get_attr('by'))