--- a/Helpviewer/History/HistoryManager.py Fri Nov 01 15:48:48 2013 +0100 +++ b/Helpviewer/History/HistoryManager.py Sun Nov 03 15:58:22 2013 +0100 @@ -353,8 +353,8 @@ else: breakMS = QDateTime.currentMSecsSinceEpoch() - period while self.__history and \ - (QDateTime(self.__history[0].dateTime).toMSecsSinceEpoch() > - breakMS): + (QDateTime(self.__history[0].dateTime).toMSecsSinceEpoch() > + breakMS): itm = self.__history.pop(0) self.entryRemoved.emit(itm) self.__lastSavedUrl = "" @@ -389,8 +389,8 @@ self.trUtf8("Loading History"), self.trUtf8( """<p>Unable to open history file <b>{0}</b>.<br/>""" - """Reason: {1}</p>""")\ - .format(historyFile.fileName, historyFile.errorString())) + """Reason: {1}</p>""") + .format(historyFile.fileName, historyFile.errorString())) return history = [] @@ -469,8 +469,8 @@ self.trUtf8("Saving History"), self.trUtf8( """<p>Unable to open history file <b>{0}</b>.<br/>""" - """Reason: {1}</p>""")\ - .format(f.fileName(), f.errorString())) + """Reason: {1}</p>""") + .format(f.fileName(), f.errorString())) return for index in range(first, -1, -1): @@ -492,17 +492,17 @@ self.trUtf8("Saving History"), self.trUtf8( """<p>Error removing old history file <b>{0}</b>.""" - """<br/>Reason: {1}</p>""")\ - .format(historyFile.fileName(), - historyFile.errorString())) + """<br/>Reason: {1}</p>""") + .format(historyFile.fileName(), + historyFile.errorString())) if not f.copy(historyFile.fileName()): E5MessageBox.warning( None, self.trUtf8("Saving History"), self.trUtf8( """<p>Error moving new history file over old one """ - """(<b>{0}</b>).<br/>Reason: {1}</p>""")\ - .format(historyFile.fileName(), f.errorString())) + """(<b>{0}</b>).<br/>Reason: {1}</p>""") + .format(historyFile.fileName(), f.errorString())) self.historySaved.emit() try: self.__lastSavedUrl = self.__history[0].url