diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 17:34:46 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 18:03:07 +1300 |
commit | c774a9fec93feedc37a450400a03b83f5f4cb4b9 (patch) | |
tree | 507c346e8f8c605d428140274678fced2e6bbc16 /netlib/tcp.py | |
parent | a647b30365593a4a3056fcf6936f5441ab9eda88 (diff) | |
download | mitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.tar.gz mitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.tar.bz2 mitmproxy-c774a9fec93feedc37a450400a03b83f5f4cb4b9.zip |
python3: clean up super and __future__
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r-- | netlib/tcp.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index 05ceef5a..aeb1d447 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -1,4 +1,3 @@ -from __future__ import (absolute_import, print_function, division) import os import select import socket @@ -597,7 +596,7 @@ class ConnectionCloser: class TCPClient(_Connection): def __init__(self, address, source_address=None, spoof_source_address=None): - super(TCPClient, self).__init__(None) + super().__init__(None) self.address = address self.source_address = source_address self.cert = None @@ -769,7 +768,7 @@ class BaseHandler(_Connection): """ def __init__(self, connection, address, server): - super(BaseHandler, self).__init__(connection) + super().__init__(connection) self.address = Address.wrap(address) self.server = server self.clientcert = None |