summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-06-27 20:36:56 +0200
committermathieui <mathieui@mathieui.net>2017-06-27 20:36:56 +0200
commitbc08858b8ac7072cff622fa6c3b0f63dcbe9e548 (patch)
treeb0647edcb2365ff0a05162d4ce5ab2e701f19558
parent4aa6e8eeba2dbdf567cc9abfa4a7421d7e5ce3ed (diff)
downloadpoezio-bc08858b8ac7072cff622fa6c3b0f63dcbe9e548.tar.gz
poezio-bc08858b8ac7072cff622fa6c3b0f63dcbe9e548.tar.bz2
poezio-bc08858b8ac7072cff622fa6c3b0f63dcbe9e548.tar.xz
poezio-bc08858b8ac7072cff622fa6c3b0f63dcbe9e548.zip
Do not end log lines with a space
… it's about time I fixed this
-rw-r--r--poezio/logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/logger.py b/poezio/logger.py
index a694d1d2..61ae8d54 100644
--- a/poezio/logger.py
+++ b/poezio/logger.py
@@ -245,9 +245,9 @@ class Logger(object):
if nick:
nick = '<' + nick + '>'
- fd.write(' '.join((prefix, str_time, nb_lines, nick, ' '+first_line, '\n')))
+ fd.write('%s %s %s %s  %s\n' % (prefix, str_time, nb_lines, nick, first_line))
else:
- fd.write(' '.join((prefix, str_time, nb_lines, first_line, '\n')))
+ fd.write('%s %s %s %s\n' % (prefix, str_time, nb_lines, first_line))
for line in lines:
fd.write(' %s\n' % line)
except: