Add missing return values in boolean functions.
This commit is contained in:
parent
521159c599
commit
84ee9c7afb
2 changed files with 4 additions and 4 deletions
|
@ -238,16 +238,16 @@ class Roster(object):
|
|||
def export(self, path):
|
||||
"""Export a list of bare jids to a given file"""
|
||||
if p.isfile(path):
|
||||
return
|
||||
return False
|
||||
try:
|
||||
f = open(path, 'w+', encoding='utf-8')
|
||||
f.writelines([str(i) + "\n" for i in self.contacts if self[i] and (self[i].subscription == "both" or self[i].ask)])
|
||||
f.close()
|
||||
return True
|
||||
except IOError:
|
||||
return
|
||||
return False
|
||||
except OSError:
|
||||
return
|
||||
return False
|
||||
|
||||
def exists(self, contact):
|
||||
if not contact:
|
||||
|
|
|
@ -238,7 +238,7 @@ class Input(Win):
|
|||
"""
|
||||
self.reset_completion()
|
||||
if self.pos == 0:
|
||||
return
|
||||
return False
|
||||
self.key_left()
|
||||
self.key_dc()
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue