diff options
author | mathieui <mathieui@mathieui.net> | 2016-09-30 21:25:36 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-09-30 21:25:36 +0200 |
commit | 46a90749f839c3d64aa05458cef825f56e9c702d (patch) | |
tree | 207a8e9228f6b6b7efde2cef405bf712a505860e /docs/getting_started/echobot.rst | |
parent | 0c63a4bbdafcb557430e02f774dc88c5f2a974c1 (diff) | |
download | slixmpp-46a90749f839c3d64aa05458cef825f56e9c702d.tar.gz slixmpp-46a90749f839c3d64aa05458cef825f56e9c702d.tar.bz2 slixmpp-46a90749f839c3d64aa05458cef825f56e9c702d.tar.xz slixmpp-46a90749f839c3d64aa05458cef825f56e9c702d.zip |
Fix uses of super() in the codebase
Fix #3165, we don’t need to use the long form to get the superobject in
our supported python versions.
Diffstat (limited to 'docs/getting_started/echobot.rst')
-rw-r--r-- | docs/getting_started/echobot.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/getting_started/echobot.rst b/docs/getting_started/echobot.rst index 0137985c..63915ca4 100644 --- a/docs/getting_started/echobot.rst +++ b/docs/getting_started/echobot.rst @@ -70,7 +70,7 @@ as well. class EchoBot(slixmpp.ClientXMPP): def __init__(self, jid, password): - super(EchoBot, self).__init__(jid, password) + super().__init__(jid, password) Handling Session Start ~~~~~~~~~~~~~~~~~~~~~~ @@ -83,7 +83,7 @@ started. To do that, we will register an event handler for the :term:`session_st .. code-block:: python def __init__(self, jid, password): - super(EchoBot, self).__init__(jid, password) + super().__init__(jid, password) self.add_event_handler('session_start', self.start) @@ -153,7 +153,7 @@ whenever a messsage is received. .. code-block:: python def __init__(self, jid, password): - super(EchoBot, self).__init__(jid, password) + super().__init__(jid, password) self.add_event_handler('session_start', self.start) self.add_event_handler('message', self.message) |