Fix no-else-return pylint errors
This commit is contained in:
parent
b09f94dabd
commit
30f850b567
|
@ -261,8 +261,7 @@ class Events:
|
|||
self._events[account][jid].remove(event)
|
||||
self.fire_event_removed([event])
|
||||
return
|
||||
else:
|
||||
return True
|
||||
return True
|
||||
if types:
|
||||
new_list = [] # list of events to keep
|
||||
removed_list = [] # list of removed events
|
||||
|
|
|
@ -90,8 +90,6 @@ class FuzzyClock:
|
|||
'0': self.HOUR_NAMES[now.tm_hour % 12],
|
||||
'1': self.HOUR_NAMES[(now.tm_hour + 1) % 12]}
|
||||
|
||||
elif fuzzyness == 3:
|
||||
if fuzzyness == 3:
|
||||
return self.FUZZY_DAYTIME[int(round(now.tm_hour / 3.0))]
|
||||
|
||||
else:
|
||||
return self.FUZZY_WEEK[now.tm_wday]
|
||||
return self.FUZZY_WEEK[now.tm_wday]
|
||||
|
|
|
@ -712,10 +712,10 @@ class Socks5:
|
|||
return None
|
||||
self.file_props.stalled = False
|
||||
return lenn
|
||||
else:
|
||||
self.state = 8 # end connection
|
||||
self.disconnect()
|
||||
return -1
|
||||
|
||||
self.state = 8 # end connection
|
||||
self.disconnect()
|
||||
return -1
|
||||
|
||||
def _on_send_exception(self):
|
||||
# peer stopped reading
|
||||
|
|
|
@ -200,7 +200,7 @@ class AccountCreationWizard:
|
|||
self.back_button.set_sensitive(True)
|
||||
return
|
||||
|
||||
elif cur_page == 1:
|
||||
if cur_page == 1:
|
||||
# We are adding an existing account
|
||||
anonymous = self.xml.get_object('anonymous_checkbutton1').\
|
||||
get_active()
|
||||
|
|
Loading…
Reference in New Issue