Browse Source

Remove newline from _write()

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
683c4fbdc8
1 changed files with 2 additions and 2 deletions
  1. 4
      youtube_dl_gui/LogManager.py

4
youtube_dl_gui/LogManager.py

@ -31,7 +31,7 @@ class LogManager(object):
self._write('', 'w') self._write('', 'w')
def log(self, data): def log(self, data):
self._write(data, 'a')
self._write(data + '\n', 'a')
def _write(self, data, mode): def _write(self, data, mode):
check_path(self.config_path) check_path(self.config_path)
@ -40,7 +40,7 @@ class LogManager(object):
if self.add_time: if self.add_time:
t = '[%s] ' % strftime('%c') t = '[%s] ' % strftime('%c')
fl.write(t) fl.write(t)
fl.write(data + '\n')
fl.write(data)
def _auto_clear_log(self): def _auto_clear_log(self):
if self.size() > self.MAX_FILESIZE: if self.size() > self.MAX_FILESIZE:

Loading…
Cancel
Save