Helpviewer/History/HistoryManager.py

changeset 3035
36e9f388958b
parent 3034
7ce719013078
child 3060
5883ce99ee12
child 3160
209a07d7e401
diff -r 7ce719013078 -r 36e9f388958b Helpviewer/History/HistoryManager.py
--- a/Helpviewer/History/HistoryManager.py	Sat Oct 19 13:03:39 2013 +0200
+++ b/Helpviewer/History/HistoryManager.py	Sat Oct 19 14:05:26 2013 +0200
@@ -351,8 +351,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 = ""
@@ -388,7 +388,7 @@
                 self.trUtf8(
                     """<p>Unable to open history file <b>{0}</b>.<br/>"""
                     """Reason: {1}</p>""")
-                    .format(historyFile.fileName, historyFile.errorString()))
+                .format(historyFile.fileName, historyFile.errorString()))
             return
         
         history = []
@@ -468,7 +468,7 @@
                 self.trUtf8(
                     """<p>Unable to open history file <b>{0}</b>.<br/>"""
                     """Reason: {1}</p>""")
-                    .format(f.fileName(), f.errorString()))
+                .format(f.fileName(), f.errorString()))
             return
         
         for index in range(first, -1, -1):
@@ -491,8 +491,8 @@
                     self.trUtf8(
                         """<p>Error removing old history file <b>{0}</b>."""
                         """<br/>Reason: {1}</p>""")
-                        .format(historyFile.fileName(),
-                                historyFile.errorString()))
+                    .format(historyFile.fileName(),
+                            historyFile.errorString()))
             if not f.copy(historyFile.fileName()):
                 E5MessageBox.warning(
                     None,
@@ -500,7 +500,7 @@
                     self.trUtf8(
                         """<p>Error moving new history file over old one """
                         """(<b>{0}</b>).<br/>Reason: {1}</p>""")
-                        .format(historyFile.fileName(), f.errorString()))
+                    .format(historyFile.fileName(), f.errorString()))
         self.historySaved.emit()
         try:
             self.__lastSavedUrl = self.__history[0].url

eric ide

mercurial