From dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:21:06 +0100 Subject: sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py --- slixmpp/plugins/xep_0096/stanza.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'slixmpp/plugins/xep_0096/stanza.py') diff --git a/slixmpp/plugins/xep_0096/stanza.py b/slixmpp/plugins/xep_0096/stanza.py index d3781c8d..2a1a9060 100644 --- a/slixmpp/plugins/xep_0096/stanza.py +++ b/slixmpp/plugins/xep_0096/stanza.py @@ -16,8 +16,8 @@ class File(ElementBase): name = 'file' namespace = 'http://jabber.org/protocol/si/profile/file-transfer' plugin_attrib = 'file' - interfaces = set(['name', 'size', 'date', 'hash', 'desc']) - sub_interfaces = set(['desc']) + interfaces = {'name', 'size', 'date', 'hash', 'desc'} + sub_interfaces = {'desc'} def set_size(self, value): self._set_attr('size', str(value)) @@ -36,7 +36,7 @@ class Range(ElementBase): name = 'range' namespace = 'http://jabber.org/protocol/si/profile/file-transfer' plugin_attrib = 'range' - interfaces = set(['length', 'offset']) + interfaces = {'length', 'offset'} def set_length(self, value): self._set_attr('length', str(value)) -- cgit v1.2.3