summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-26 13:55:23 -0400
committerLance Stout <lancestout@gmail.com>2010-08-26 13:55:23 -0400
commite16b37d2be1d20b68343acfcef3c4f9846b0425e (patch)
tree0fa86b152cbe6907bbdae467a2c6df972e13a9d9 /sleekxmpp/xmlstream/stanzabase.py
parentd68bc2ba076461484ba4c30671ef437c48e349d5 (diff)
downloadslixmpp-e16b37d2be1d20b68343acfcef3c4f9846b0425e.tar.gz
slixmpp-e16b37d2be1d20b68343acfcef3c4f9846b0425e.tar.bz2
slixmpp-e16b37d2be1d20b68343acfcef3c4f9846b0425e.tar.xz
slixmpp-e16b37d2be1d20b68343acfcef3c4f9846b0425e.zip
Fixed line lengths in ElementBase to comply with PEP8.
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index c0e74ff4..c76c904e 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -257,8 +257,8 @@ class ElementBase(object):
for stanza in self.iterables:
iterables.append(stanza.getStanzaValues())
iterables[-1].update({
- '__childtag__': "{%s}%s" % (stanza.namespace, stanza.name)
- })
+ '__childtag__': "{%s}%s" % (stanza.namespace,
+ stanza.name)})
values['substanzas'] = iterables
return values
@@ -556,9 +556,10 @@ class ElementBase(object):
if parent is None:
parent = self.xml
for element in elements:
- if element.tag == original_target or not element.getchildren():
- # Only delete the originally requested elements, and any
- # parent elements that have become empty.
+ if element.tag == original_target or \
+ not element.getchildren():
+ # Only delete the originally requested elements, and
+ # any parent elements that have become empty.
parent.remove(element)
if not all:
# If we don't want to delete elements up the tree, stop