summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/tostring.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-19 09:47:31 -0700
committerLance Stout <lancestout@gmail.com>2012-06-19 09:47:31 -0700
commit7858d969d82eaaa7124b8d59a68c286f06cbf758 (patch)
tree63c6c988eea16da3d6c8dc9c42c357ed668171a8 /sleekxmpp/xmlstream/tostring.py
parent811955104968a055c651ea1fe97adc9f0ae61676 (diff)
downloadslixmpp-7858d969d82eaaa7124b8d59a68c286f06cbf758.tar.gz
slixmpp-7858d969d82eaaa7124b8d59a68c286f06cbf758.tar.bz2
slixmpp-7858d969d82eaaa7124b8d59a68c286f06cbf758.tar.xz
slixmpp-7858d969d82eaaa7124b8d59a68c286f06cbf758.zip
Remove usage of deprecated getchildren() method.
Diffstat (limited to 'sleekxmpp/xmlstream/tostring.py')
-rw-r--r--sleekxmpp/xmlstream/tostring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/tostring.py b/sleekxmpp/xmlstream/tostring.py
index 379ea09a..2480f9b2 100644
--- a/sleekxmpp/xmlstream/tostring.py
+++ b/sleekxmpp/xmlstream/tostring.py
@@ -107,7 +107,7 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None,
if xml.text:
output.append(xml_escape(xml.text))
if len(xml):
- for child in xml.getchildren():
+ for child in xml:
output.append(tostring(child, tag_xmlns, stanza_ns, stream))
output.append("</%s>" % tag_name)
elif xml.text: