aboutsummaryrefslogtreecommitdiffstats
path: root/examples/webchannel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-28 10:39:36 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-28 12:08:29 +0200
commit1ec4d298984d90672354e7864e35af4100285525 (patch)
treebba17fc66bef715f50d042c40e37e2707b7e5c8a /examples/webchannel
parent29edb488705c1498f67ff7c1958b27d617136da0 (diff)
Examples: Use new form of super()
Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/webchannel')
-rw-r--r--examples/webchannel/standalone/core.py2
-rw-r--r--examples/webchannel/standalone/dialog.py2
-rw-r--r--examples/webchannel/standalone/websocketclientwrapper.py2
-rw-r--r--examples/webchannel/standalone/websockettransport.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/webchannel/standalone/core.py b/examples/webchannel/standalone/core.py
index f6c3e8043..f26b6b834 100644
--- a/examples/webchannel/standalone/core.py
+++ b/examples/webchannel/standalone/core.py
@@ -49,7 +49,7 @@ class Core(QObject):
sendText = Signal(str)
def __init__(self, dialog, parent=None):
- super(Core, self).__init__(parent)
+ super().__init__(parent)
self._dialog = dialog
self._dialog.sendText.connect(self._emit_send_text)
diff --git a/examples/webchannel/standalone/dialog.py b/examples/webchannel/standalone/dialog.py
index 5e8acb908..2db033fcd 100644
--- a/examples/webchannel/standalone/dialog.py
+++ b/examples/webchannel/standalone/dialog.py
@@ -49,7 +49,7 @@ class Dialog(QDialog):
sendText = Signal(str)
def __init__(self, parent=None):
- super(Dialog, self).__init__(parent)
+ super().__init__(parent)
self._ui = Ui_Dialog()
self._ui.setupUi(self)
self._ui.send.clicked.connect(self.clicked)
diff --git a/examples/webchannel/standalone/websocketclientwrapper.py b/examples/webchannel/standalone/websocketclientwrapper.py
index 5d4ec4cfe..96aa79a08 100644
--- a/examples/webchannel/standalone/websocketclientwrapper.py
+++ b/examples/webchannel/standalone/websocketclientwrapper.py
@@ -57,7 +57,7 @@ class WebSocketClientWrapper(QObject):
"""Construct the client wrapper with the given parent. All clients
connecting to the QWebSocketServer will be automatically wrapped
in WebSocketTransport objects."""
- super(WebSocketClientWrapper, self).__init__(parent)
+ super().__init__(parent)
self._server = server
self._server.newConnection.connect(self.handleNewConnection)
self._transports = []
diff --git a/examples/webchannel/standalone/websockettransport.py b/examples/webchannel/standalone/websockettransport.py
index 401701699..570c7e518 100644
--- a/examples/webchannel/standalone/websockettransport.py
+++ b/examples/webchannel/standalone/websockettransport.py
@@ -54,7 +54,7 @@ class WebSocketTransport(QWebChannelAbstractTransport):
def __init__(self, socket):
"""Construct the transport object and wrap the given socket.
The socket is also set as the parent of the transport object."""
- super(WebSocketTransport, self).__init__(socket)
+ super().__init__(socket)
self._socket = socket
self._socket.textMessageReceived.connect(self.textMessageReceived)
self._socket.disconnected.connect(self._disconnected)