From 1038f656eb1f766983a5869611daab447817a6ac Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:20:10 +0100 Subject: sed -i 's/set((\(.*\),))$/{\1}/g' **/*.py --- slixmpp/xmlstream/stanzabase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/xmlstream/stanzabase.py') diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py index e7ffddc8..306fdb2e 100644 --- a/slixmpp/xmlstream/stanzabase.py +++ b/slixmpp/xmlstream/stanzabase.py @@ -213,7 +213,7 @@ class ElementBase(object): ... name = "message" ... namespace = "jabber:client" ... interfaces = set(('to', 'from', 'type', 'body')) - ... sub_interfaces = set(('body',)) + ... sub_interfaces = {'body'} The resulting Message stanza's contents may be accessed as so:: -- cgit v1.2.3