diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-07-05 23:22:03 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-07-06 00:25:12 +0100 |
commit | 84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69 (patch) | |
tree | bc218b07ec666fcab45c021583ca68b29024b44c /poezio/roster.py | |
parent | 521159c599f9eafee3e01df490e14ada58e17d2f (diff) | |
download | poezio-84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69.tar.gz poezio-84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69.tar.bz2 poezio-84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69.tar.xz poezio-84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69.zip |
Add missing return values in boolean functions.
Diffstat (limited to 'poezio/roster.py')
-rw-r--r-- | poezio/roster.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/roster.py b/poezio/roster.py index 15b3b01c..ac8012cb 100644 --- a/poezio/roster.py +++ b/poezio/roster.py @@ -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: |