whitespace cleanups

This commit is contained in:
Steffen Vogel 2017-02-11 17:51:57 -03:00
parent 81687c9402
commit 9b1e2c1462

View file

@ -109,7 +109,6 @@ class BuddyList(dict):
try: del self[number] try: del self[number]
except KeyError: self.logger.warn("non-existing buddy really didn't exist: %s" % number) except KeyError: self.logger.warn("non-existing buddy really didn't exist: %s" % number)
def onStatus(self, contacts): def onStatus(self, contacts):
self.logger.debug("%s received statuses of: %s" % (self.user, contacts)) self.logger.debug("%s received statuses of: %s" % (self.user, contacts))
for number, (status, time) in contacts.iteritems(): for number, (status, time) in contacts.iteritems():
@ -121,7 +120,6 @@ class BuddyList(dict):
buddy.statusMsg = utils.softToUni(status) buddy.statusMsg = utils.softToUni(status)
self.updateSpectrum(buddy) self.updateSpectrum(buddy)
def load(self, buddies): def load(self, buddies):
if self.session.loggedIn: if self.session.loggedIn:
self._load(buddies) self._load(buddies)
@ -165,7 +163,6 @@ class BuddyList(dict):
self.backend.handleBuddyChanged(self.user, buddy.number, buddy.nick, self.backend.handleBuddyChanged(self.user, buddy.number, buddy.nick,
buddy.groups, status, statusMessage=statusmsg, iconHash=iconHash) buddy.groups, status, statusMessage=statusmsg, iconHash=iconHash)
def remove(self, number): def remove(self, number):
try: try:
buddy = self[number] buddy = self[number]
@ -174,7 +171,7 @@ class BuddyList(dict):
protocol_pb2.STATUS_NONE) protocol_pb2.STATUS_NONE)
self.backend.handleBuddyRemoved(self.user, number) self.backend.handleBuddyRemoved(self.user, number)
self.session.unsubscribePresence(number) self.session.unsubscribePresence(number)
# TODO Sync remove # TODO Sync remove
return buddy return buddy
except KeyError: except KeyError:
return None return None