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