summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 8bdcb0b0..277882e8 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -64,7 +64,8 @@ class ElementBase(object):
if not isinstance(item, ElementBase):
raise TypeError
self.xml.append(item.xml)
- return self.iterables.append(item)
+ self.iterables.append(item)
+ return self
def pop(self, idx=0):
aff = self.iterables.pop(idx)
@@ -236,7 +237,7 @@ class ElementBase(object):
self.plugins[interface].setValues(attrib[interface])
return self
- def append(self, xml):
+ def appendxml(self, xml):
self.xml.append(xml)
return self