Revert changes to cmdhistory.py.

This commit is contained in:
Florian Bruhin 2015-08-27 06:25:42 +02:00
parent 4544c78395
commit 3e8136e353

View File

@ -63,7 +63,6 @@ class History(QObject):
super().__init__(parent)
self.handle_private_mode = False
self._tmphist = None
if history is None:
self.history = []
else:
@ -110,7 +109,7 @@ class History(QObject):
try:
return self._tmphist.previtem()
except IndexError:
raise HistoryEndReachedError("History end reached")
raise HistoryEndReachedError
def nextitem(self):
"""Get the next item in the temp history.
@ -122,7 +121,7 @@ class History(QObject):
try:
return self._tmphist.nextitem()
except IndexError:
raise HistoryEndReachedError("History end reached")
raise HistoryEndReachedError
def append(self, text):
"""Append a new item to the history.