summaryrefslogtreecommitdiff
path: root/slixmpp/exceptions.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-09-30 21:25:36 +0200
committermathieui <mathieui@mathieui.net>2016-09-30 21:25:36 +0200
commit46a90749f839c3d64aa05458cef825f56e9c702d (patch)
tree207a8e9228f6b6b7efde2cef405bf712a505860e /slixmpp/exceptions.py
parent0c63a4bbdafcb557430e02f774dc88c5f2a974c1 (diff)
downloadslixmpp-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 'slixmpp/exceptions.py')
-rw-r--r--slixmpp/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/exceptions.py b/slixmpp/exceptions.py
index a6c09a0b..0486666e 100644
--- a/slixmpp/exceptions.py
+++ b/slixmpp/exceptions.py
@@ -77,7 +77,7 @@ class IqTimeout(XMPPError):
"""
def __init__(self, iq):
- super(IqTimeout, self).__init__(
+ super().__init__(
condition='remote-server-timeout',
etype='cancel')
@@ -94,7 +94,7 @@ class IqError(XMPPError):
"""
def __init__(self, iq):
- super(IqError, self).__init__(
+ super().__init__(
condition=iq['error']['condition'],
text=iq['error']['text'],
etype=iq['error']['type'])