summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/autoupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/autoupdate.py')
-rw-r--r--qutebrowser/misc/autoupdate.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/qutebrowser/misc/autoupdate.py b/qutebrowser/misc/autoupdate.py
index 73afdde54..183e4d750 100644
--- a/qutebrowser/misc/autoupdate.py
+++ b/qutebrowser/misc/autoupdate.py
@@ -21,12 +21,11 @@
import json
-from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QUrl
-
from qutebrowser.misc import httpclient
+from qutebrowser.qt import QtCore
-class PyPIVersionClient(QObject):
+class PyPIVersionClient(QtCore.QObject):
"""A client for the PyPI API using HTTPClient.
@@ -46,8 +45,8 @@ class PyPIVersionClient(QObject):
"""
API_URL = 'https://pypi.org/pypi/{}/json'
- success = pyqtSignal(str)
- error = pyqtSignal(str)
+ success = QtCore.pyqtSignal(str)
+ error = QtCore.pyqtSignal(str)
def __init__(self, parent=None, client=None):
super().__init__(parent)
@@ -66,10 +65,10 @@ class PyPIVersionClient(QObject):
Args:
package: The name of the package to check.
"""
- url = QUrl(self.API_URL.format(package))
+ url = QtCore.QUrl(self.API_URL.format(package))
self._client.get(url)
- @pyqtSlot(str)
+ @QtCore.pyqtSlot(str)
def on_client_success(self, data):
"""Process the data and finish when the client finished.