diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 17:29:45 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 17:37:08 +1300 |
commit | a647b30365593a4a3056fcf6936f5441ab9eda88 (patch) | |
tree | 079b18790be5dfcc9a88f19e282b57088574d223 /netlib/tcp.py | |
parent | fb22f2ff4f75783ba786935c93b75f372ede21f5 (diff) | |
download | mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.gz mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.bz2 mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.zip |
python3: clean up class brackets
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r-- | netlib/tcp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index a0e0b69d..05ceef5a 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -72,7 +72,7 @@ sslversion_choices = { } -class SSLKeyLogger(): +class SSLKeyLogger: def __init__(self, filename): self.filename = filename @@ -111,7 +111,7 @@ log_ssl_key = SSLKeyLogger.create_logfun( os.getenv("MITMPROXY_SSLKEYLOGFILE") or os.getenv("SSLKEYLOGFILE")) -class _FileLike(): +class _FileLike: BLOCKSIZE = 1024 * 32 def __init__(self, o): @@ -426,7 +426,7 @@ def close_socket(sock): sock.close() -class _Connection(): +class _Connection: rbufsize = -1 wbufsize = -1 @@ -574,7 +574,7 @@ class _Connection(): return context -class ConnectionCloser(): +class ConnectionCloser: def __init__(self, conn): self.conn = conn self._canceled = False @@ -888,7 +888,7 @@ class Counter: self._count -= 1 -class TCPServer(): +class TCPServer: request_queue_size = 20 def __init__(self, address): |