diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-10-17 18:21:23 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 18:21:23 +1300 |
commit | 00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch) | |
tree | 507c346e8f8c605d428140274678fced2e6bbc16 /netlib/exceptions.py | |
parent | 666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff) | |
parent | c774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff) | |
download | mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.gz mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.bz2 mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.zip |
Merge pull request #1617 from cortesi/object
python3
Diffstat (limited to 'netlib/exceptions.py')
-rw-r--r-- | netlib/exceptions.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/netlib/exceptions.py b/netlib/exceptions.py index dec79c22..d0b15d27 100644 --- a/netlib/exceptions.py +++ b/netlib/exceptions.py @@ -5,7 +5,6 @@ Every Exception netlib raises shall be a subclass of NetlibException. See also: http://lucumr.pocoo.org/2014/10/16/on-error-handling/ """ -from __future__ import absolute_import, print_function, division class NetlibException(Exception): @@ -13,10 +12,10 @@ class NetlibException(Exception): Base class for all exceptions thrown by netlib. """ def __init__(self, message=None): - super(NetlibException, self).__init__(message) + super().__init__(message) -class Disconnect(object): +class Disconnect: """Immediate EOF""" |