Fix lint.
This commit is contained in:
parent
299dbfa56a
commit
7a28b6c821
@ -20,7 +20,6 @@
|
|||||||
"""Simple history which gets written to disk."""
|
"""Simple history which gets written to disk."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import itertools
|
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSignal
|
from PyQt5.QtCore import pyqtSignal
|
||||||
from PyQt5.QtWebKit import QWebHistoryInterface
|
from PyQt5.QtWebKit import QWebHistoryInterface
|
||||||
@ -132,6 +131,7 @@ class WebHistory(QWebHistoryInterface):
|
|||||||
"""
|
"""
|
||||||
return url_string in self._history_dict
|
return url_string in self._history_dict
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the web history."""
|
"""Initialize the web history."""
|
||||||
history = WebHistory()
|
history = WebHistory()
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
"""CompletionModels for URLs."""
|
"""CompletionModels for URLs."""
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSlot, Qt
|
from PyQt5.QtCore import pyqtSlot
|
||||||
from PyQt5.QtGui import QStandardItem
|
from PyQt5.QtGui import QStandardItem
|
||||||
|
|
||||||
from qutebrowser.utils import objreg
|
from qutebrowser.utils import objreg
|
||||||
@ -64,7 +64,8 @@ class UrlCompletionModel(base.BaseCompletionModel):
|
|||||||
if not name:
|
if not name:
|
||||||
continue
|
continue
|
||||||
if name.text() == item.url:
|
if name.text() == item.url:
|
||||||
self._history_cat.setChild(i, 2, QStandardItem(str(atime)))
|
self._history_cat.setChild(i, 2,
|
||||||
|
QStandardItem(str(atime)))
|
||||||
name.setData(str(atime), base.Role.sort)
|
name.setData(str(atime), base.Role.sort)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user