summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/pubsub_client.py2
-rwxr-xr-xexamples/pubsub_events.py2
-rwxr-xr-xexamples/user_location.py2
-rwxr-xr-xexamples/user_tune.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index c5688750..d9733036 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -15,7 +15,7 @@ class PubsubClient(slixmpp.ClientXMPP):
def __init__(self, jid, password, server,
node=None, action='nodes', data=''):
- super(PubsubClient, self).__init__(jid, password)
+ super().__init__(jid, password)
self.register_plugin('xep_0030')
self.register_plugin('xep_0059')
diff --git a/examples/pubsub_events.py b/examples/pubsub_events.py
index 369d7114..e2fdc9cf 100755
--- a/examples/pubsub_events.py
+++ b/examples/pubsub_events.py
@@ -14,7 +14,7 @@ from slixmpp.xmlstream.handler import Callback
class PubsubEvents(slixmpp.ClientXMPP):
def __init__(self, jid, password):
- super(PubsubEvents, self).__init__(jid, password)
+ super().__init__(jid, password)
self.register_plugin('xep_0030')
self.register_plugin('xep_0059')
diff --git a/examples/user_location.py b/examples/user_location.py
index 5a30f7af..7edbeabb 100755
--- a/examples/user_location.py
+++ b/examples/user_location.py
@@ -22,7 +22,7 @@ from slixmpp import ClientXMPP
class LocationBot(ClientXMPP):
def __init__(self, jid, password):
- super(LocationBot, self).__init__(jid, password)
+ super().__init__(jid, password)
self.add_event_handler('session_start', self.start)
self.add_event_handler('user_location_publish',
diff --git a/examples/user_tune.py b/examples/user_tune.py
index 3f5e1c9e..6aa0da8e 100755
--- a/examples/user_tune.py
+++ b/examples/user_tune.py
@@ -17,7 +17,7 @@ from slixmpp import ClientXMPP
class TuneBot(ClientXMPP):
def __init__(self, jid, password):
- super(TuneBot, self).__init__(jid, password)
+ super().__init__(jid, password)
# Check for the current song every 5 seconds.
self.schedule('Check Current Tune', 5, self._update_tune, repeat=True)