summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/pastebin.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/pastebin.py')
-rw-r--r--qutebrowser/misc/pastebin.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/qutebrowser/misc/pastebin.py b/qutebrowser/misc/pastebin.py
index afca59d2e..bc3ac0466 100644
--- a/qutebrowser/misc/pastebin.py
+++ b/qutebrowser/misc/pastebin.py
@@ -20,11 +20,10 @@
"""Client for the pastebin."""
import urllib.parse
+from qutebrowser.qt import core
-from qutebrowser.qt.core import pyqtSignal, pyqtSlot, QObject, QUrl
-
-class PastebinClient(QObject):
+class PastebinClient(core.QObject):
"""A client for Stikked pastebins using HTTPClient.
@@ -43,8 +42,8 @@ class PastebinClient(QObject):
API_URL = 'https://crashes.qutebrowser.org/api/'
MISC_API_URL = 'https://paste.the-compiler.org/api/'
- success = pyqtSignal(str)
- error = pyqtSignal(str)
+ success = core.pyqtSignal(str)
+ error = core.pyqtSignal(str)
def __init__(self, client, parent=None, api_url=API_URL):
"""Constructor.
@@ -81,10 +80,10 @@ class PastebinClient(QObject):
if private:
data['private'] = '1'
- url = QUrl(urllib.parse.urljoin(self._api_url, 'create'))
+ url = core.QUrl(urllib.parse.urljoin(self._api_url, 'create'))
self._client.post(url, data)
- @pyqtSlot(str)
+ @core.pyqtSlot(str)
def on_client_success(self, data):
"""Process the data and finish when the client finished.