summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index e6f6d42c..b73b2ecd 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -225,13 +225,13 @@ class SearchBuffer(Buffer):
def __str__(self):
formatstring = '[search] for "%s" (%d message%s)'
return formatstring % (self.querystring, self.result_count,
- 's' * (not (self.result_count == 1)))
+ 's' if self.result_count > 1 else '')
def get_info(self):
info = {}
info['querystring'] = self.querystring
info['result_count'] = self.result_count
- info['result_count_positive'] = 's' * (not (self.result_count == 1))
+ info['result_count_positive'] = 's' if self.result_count > 1 else ''
return info
def cleanup(self):