diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-02-09 14:34:31 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-09 16:08:24 +0100 |
commit | d6d1ff017078ceb1730da9d2138b3ebcdccb7972 (patch) | |
tree | 80139cfbb0dbb3ad3e78d0a0217942945e58ba21 /mitmproxy/connections.py | |
parent | 7a205e80aa94600291f87c96e51f13abe9fb4703 (diff) | |
download | mitmproxy-d6d1ff017078ceb1730da9d2138b3ebcdccb7972.tar.gz mitmproxy-d6d1ff017078ceb1730da9d2138b3ebcdccb7972.tar.bz2 mitmproxy-d6d1ff017078ceb1730da9d2138b3ebcdccb7972.zip |
simplify state copy
Diffstat (limited to 'mitmproxy/connections.py')
-rw-r--r-- | mitmproxy/connections.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mitmproxy/connections.py b/mitmproxy/connections.py index 9c4bca2f..a32889bd 100644 --- a/mitmproxy/connections.py +++ b/mitmproxy/connections.py @@ -1,6 +1,5 @@ import time -import copy import os from mitmproxy import stateobject @@ -82,9 +81,6 @@ class ClientConnection(tcp.BaseHandler, stateobject.StateObject): tls_version=str, ) - def copy(self): - return copy.copy(self) - def send(self, message): if isinstance(message, list): message = b''.join(message) @@ -222,9 +218,6 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject): via=None )) - def copy(self): - return copy.copy(self) - def connect(self): self.timestamp_start = time.time() tcp.TCPClient.connect(self) |