This commit is contained in:
Florian Bruhin 2014-06-16 12:11:10 +02:00
parent 54b409fa4c
commit 7325cefdae
3 changed files with 4 additions and 2 deletions

View File

@ -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):

View File

@ -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

View File

@ -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