diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2016-07-14 13:30:52 +0200 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2016-12-09 11:26:15 +0100 |
commit | d89bbe11537abfceb3d0c7b62b9325fceaf51e32 (patch) | |
tree | 7bb9697a7a2aac29da8f529cdca44ee050023dc2 /alot/commands/search.py | |
parent | e2de9282a33a8906077a3d223d025367071bce6b (diff) |
Use logging's native string interpolation
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r-- | alot/commands/search.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py index 0001a0bd..7a2184ae 100644 --- a/alot/commands/search.py +++ b/alot/commands/search.py @@ -33,7 +33,7 @@ class OpenThreadCommand(Command): self.thread = ui.current_buffer.get_selected_thread() if self.thread: query = ui.current_buffer.querystring - logging.info('open thread view for %s' % self.thread) + logging.info('open thread view for %s', self.thread) sb = buffers.ThreadBuffer(ui, self.thread) ui.buffer_open(sb) @@ -185,13 +185,13 @@ class TagCommand(Command): if not self.allm: testquery = "(%s) AND thread:%s" % (testquery, thread.get_thread_id()) - logging.debug('all? %s' % self.allm) - logging.debug('q: %s' % testquery) + logging.debug('all? %s', self.allm) + logging.debug('q: %s', testquery) hitcount_before = ui.dbman.count_messages(testquery) def remove_thread(): - logging.debug('remove thread from result list: %s' % thread) + logging.debug('remove thread from result list: %s', thread) if threadline_widget in searchbuffer.threadlist: # remove this thread from result list searchbuffer.threadlist.remove(threadline_widget) |