diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-17 09:54:17 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-17 09:54:17 +1200 |
commit | b9531ac89ba70d8404444d4e2b86b94153a783c9 (patch) | |
tree | 6c2d970ec393509a7f195d4eabc1d35d8ff946af /libmproxy/protocol/primitives.py | |
parent | f7da58ca9b8b3dc33f5a9b57999b07f99db5bc63 (diff) | |
download | mitmproxy-b9531ac89ba70d8404444d4e2b86b94153a783c9.tar.gz mitmproxy-b9531ac89ba70d8404444d4e2b86b94153a783c9.tar.bz2 mitmproxy-b9531ac89ba70d8404444d4e2b86b94153a783c9.zip |
Whitespace & formatting
Diffstat (limited to 'libmproxy/protocol/primitives.py')
-rw-r--r-- | libmproxy/protocol/primitives.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/libmproxy/protocol/primitives.py b/libmproxy/protocol/primitives.py index ecf24fd7..a8c5856c 100644 --- a/libmproxy/protocol/primitives.py +++ b/libmproxy/protocol/primitives.py @@ -162,7 +162,7 @@ class ProtocolHandler(object): class LiveConnection(object): """ This facade allows interested parties (FlowMaster, inline scripts) to - interface with a live connection, without requiring to expose the internals + interface with a live connection, without exposing the internals of the ConnectionHandler. """ def __init__(self, c): @@ -188,13 +188,16 @@ class LiveConnection(object): if ssl_mismatch or address_mismatch or force: - self.c.log("Change server connection: %s:%s -> %s:%s [persistent: %s]" % ( - self.c.server_conn.address.host, - self.c.server_conn.address.port, - address.host, - address.port, - persistent_change - ), "debug") + self.c.log( + "Change server connection: %s:%s -> %s:%s [persistent: %s]" % ( + self.c.server_conn.address.host, + self.c.server_conn.address.port, + address.host, + address.port, + persistent_change + ), + "debug" + ) if not self._backup_server_conn and not persistent_change: self._backup_server_conn = self.c.server_conn @@ -227,4 +230,4 @@ class LiveConnection(object): self.c.del_server_connection() self.c.server_conn = self._backup_server_conn - self._backup_server_conn = None
\ No newline at end of file + self._backup_server_conn = None |