Fix lint
This commit is contained in:
parent
54b409fa4c
commit
7325cefdae
@ -17,8 +17,6 @@
|
||||
|
||||
"""The main browser widgets."""
|
||||
|
||||
import operator
|
||||
|
||||
import sip
|
||||
from PyQt5.QtCore import QCoreApplication, pyqtSignal, pyqtSlot, PYQT_VERSION
|
||||
from PyQt5.QtNetwork import QNetworkReply
|
||||
@ -64,6 +62,7 @@ class BrowserPage(QWebPage):
|
||||
# This breaks in <= 5.3.0, but in anything later it hopefully
|
||||
# works.
|
||||
# FIXME confirm this as soon as 5.3.1 is out!
|
||||
# pylint: disable=invalid-name
|
||||
self.javaScriptPrompt = self._javascript_prompt
|
||||
|
||||
def _javascript_prompt(self, _frame, msg, default):
|
||||
|
@ -117,6 +117,7 @@ class register: # pylint: disable=invalid-name
|
||||
Args:
|
||||
See class attributes.
|
||||
"""
|
||||
# pylint: disable=too-many-arguments
|
||||
if modes is not None and not_modes is not None:
|
||||
raise ValueError("Only modes or not_modes can be given!")
|
||||
self.name = name
|
||||
|
@ -154,6 +154,7 @@ def check_qt_version():
|
||||
app.quit()
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def check_pyqt_webkit():
|
||||
"""Check if PyQt WebKit is installed."""
|
||||
from PyQt5.QtWidgets import QApplication, QMessageBox
|
||||
@ -183,6 +184,7 @@ def check_pyqt_webkit():
|
||||
app.quit()
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def check_pkg_resources():
|
||||
"""Check if pkg_resources is installed."""
|
||||
from PyQt5.QtWidgets import QApplication, QMessageBox
|
||||
|
Loading…
Reference in New Issue
Block a user