From 683c4fbdc825f1e8f2d4c2829d6260d48f7b31e9 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 14 May 2014 12:51:06 +0300 Subject: [PATCH] Remove newline from _write() --- youtube_dl_gui/LogManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl_gui/LogManager.py b/youtube_dl_gui/LogManager.py index ee00e0d..0138e36 100644 --- a/youtube_dl_gui/LogManager.py +++ b/youtube_dl_gui/LogManager.py @@ -31,7 +31,7 @@ class LogManager(object): self._write('', 'w') def log(self, data): - self._write(data, 'a') + self._write(data + '\n', 'a') def _write(self, data, mode): check_path(self.config_path) @@ -40,7 +40,7 @@ class LogManager(object): if self.add_time: t = '[%s] ' % strftime('%c') fl.write(t) - fl.write(data + '\n') + fl.write(data) def _auto_clear_log(self): if self.size() > self.MAX_FILESIZE: