diff options
author | Lance Stout <lancestout@gmail.com> | 2010-07-11 21:43:51 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-07-11 21:43:51 -0400 |
commit | d0cb400c544abb432fa9b67038381be8172c2efb (patch) | |
tree | aaaaa9a42d9d3a6c6863216f276b8ad2d9aa9ce3 /sleekxmpp/plugins | |
parent | 7f8179d91e4f8ae3d58448e57f2e350ed6269fd0 (diff) | |
download | slixmpp-d0cb400c544abb432fa9b67038381be8172c2efb.tar.gz slixmpp-d0cb400c544abb432fa9b67038381be8172c2efb.tar.bz2 slixmpp-d0cb400c544abb432fa9b67038381be8172c2efb.tar.xz slixmpp-d0cb400c544abb432fa9b67038381be8172c2efb.zip |
Fixed tabs to please tab nanny.
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/xep_0033.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0033.py b/sleekxmpp/plugins/xep_0033.py index 89770dc1..df8bb88d 100644 --- a/sleekxmpp/plugins/xep_0033.py +++ b/sleekxmpp/plugins/xep_0033.py @@ -41,7 +41,7 @@ class Addresses(ElementBase): def setAddresses(self, addresses, set_type=None): self.delAddresses(set_type) for addr in addresses: - addr = dict(addr) + addr = dict(addr) # Remap 'type' to 'atype' to match the add method if set_type is not None: addr['type'] = set_type @@ -52,8 +52,8 @@ class Addresses(ElementBase): self.addAddress(**addr) def delAddresses(self, atype=None): - if atype is None: - return + if atype is None: + return for addrXML in self.xml.findall('{%s}address' % Address.namespace): # ElementTree 1.2.6 does not support [@attr='value'] in findall if addrXML.attrib.get('type') == atype: |