summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-04 22:37:22 -0700
committerLance Stout <lancestout@gmail.com>2011-08-04 22:37:22 -0700
commit47bc50d9fbbe8d72b589a6360aa8b5f32d6ba74b (patch)
treebea40ff79dc92dd38c1152905658dde1e84df96b /sleekxmpp/xmlstream
parent93a4a3f8a0f64eed846895365fa3da059bbf5ea1 (diff)
downloadslixmpp-47bc50d9fbbe8d72b589a6360aa8b5f32d6ba74b.tar.gz
slixmpp-47bc50d9fbbe8d72b589a6360aa8b5f32d6ba74b.tar.bz2
slixmpp-47bc50d9fbbe8d72b589a6360aa8b5f32d6ba74b.tar.xz
slixmpp-47bc50d9fbbe8d72b589a6360aa8b5f32d6ba74b.zip
Cosmetic PEP8 fixes.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index f1a9e1f5..a2826ead 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -482,7 +482,8 @@ class ElementBase(object):
if plugin:
if plugin not in self.plugins:
self.init_plugin(plugin)
- handler = getattr(self.plugins[plugin], set_method, None)
+ handler = getattr(self.plugins[plugin],
+ set_method, None)
if handler:
return handler(value)
@@ -1066,7 +1067,7 @@ class ElementBase(object):
stanza_ns = '' if top_level_ns else self.namespace
return tostring(self.xml, xmlns='',
stanza_ns=stanza_ns,
- top_level = not top_level_ns)
+ top_level=not top_level_ns)
def __repr__(self):
"""
@@ -1285,7 +1286,7 @@ class StanzaBase(ElementBase):
return tostring(self.xml, xmlns='',
stanza_ns=stanza_ns,
stream=self.stream,
- top_level = not top_level_ns)
+ top_level=not top_level_ns)
# To comply with PEP8, method names now use underscores.