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