diff --git a/qutebrowser/browser/tab.py b/qutebrowser/browser/tab.py index 1af099229..0e2006baa 100644 --- a/qutebrowser/browser/tab.py +++ b/qutebrowser/browser/tab.py @@ -330,7 +330,7 @@ class AbstractHistory: self.history = None def __iter__(self): - raise NotImplementedError + return iter(self.history.items()) def current_idx(self): raise NotImplementedError diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index fa934a917..3431b1e63 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -60,9 +60,6 @@ class WebEngineScroller(tab.AbstractScroller): class WebEngineHistory(tab.AbstractHistory): - def __iter__(self): - return iter(self.history.items()) - def current_idx(self): return self.history.currentItemIndex() diff --git a/qutebrowser/browser/webkit/webkittab.py b/qutebrowser/browser/webkit/webkittab.py index 4b77401d4..87130ca91 100644 --- a/qutebrowser/browser/webkit/webkittab.py +++ b/qutebrowser/browser/webkit/webkittab.py @@ -368,9 +368,6 @@ class WebViewScroller(tab.AbstractScroller): class WebViewHistory(tab.AbstractHistory): - def __iter__(self): - return iter(self.history.items()) - def current_idx(self): return self.history.currentItemIndex()