Strip newlines from stored history in HistoryMonitor

This commit is contained in:
Kristóf Tóth 2018-03-03 23:02:19 +01:00
parent 180cf41f85
commit cc964fdf27

View File

@ -26,7 +26,7 @@ class HistoryMonitor:
def _fetch_history(self): def _fetch_history(self):
with open(self.histfile, 'r') as ifile: with open(self.histfile, 'r') as ifile:
self._history = ifile.readlines() self._history = [line.rstrip() for line in ifile.readlines()]
def watch(self): def watch(self):
self.observer.start() self.observer.start()