aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/exceptions.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-17 17:34:46 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-17 18:03:07 +1300
commitc774a9fec93feedc37a450400a03b83f5f4cb4b9 (patch)
tree507c346e8f8c605d428140274678fced2e6bbc16 /mitmproxy/exceptions.py
parenta647b30365593a4a3056fcf6936f5441ab9eda88 (diff)
downloadmitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.tar.gz
mitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.tar.bz2
mitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.zip
python3: clean up super and __future__
Diffstat (limited to 'mitmproxy/exceptions.py')
-rw-r--r--mitmproxy/exceptions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mitmproxy/exceptions.py b/mitmproxy/exceptions.py
index 7fca584a..b696c91f 100644
--- a/mitmproxy/exceptions.py
+++ b/mitmproxy/exceptions.py
@@ -5,7 +5,6 @@ Every Exception mitmproxy raises shall be a subclass of ProxyException.
See also: http://lucumr.pocoo.org/2014/10/16/on-error-handling/
"""
-from __future__ import absolute_import, print_function, division
class ProxyException(Exception):
@@ -15,7 +14,7 @@ class ProxyException(Exception):
"""
def __init__(self, message=None):
- super(ProxyException, self).__init__(message)
+ super().__init__(message)
class Kill(ProxyException):
@@ -41,7 +40,7 @@ class TlsProtocolException(ProtocolException):
class ClientHandshakeException(TlsProtocolException):
def __init__(self, message, server):
- super(ClientHandshakeException, self).__init__(message)
+ super().__init__(message)
self.server = server