diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 11:25:28 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 11:25:28 +1200 |
commit | b688661ffbdfd269fa7b4aa97d0746abe85bb073 (patch) | |
tree | 14ae2682039845815744078f53e11c0cd2418c96 /netlib/tcp.py | |
parent | d9a731b23a930474adc35d6b4ebee68cd05a0940 (diff) | |
parent | 3b81d678c4ff6ae8be563c3d087c4786648c24af (diff) | |
download | mitmproxy-b688661ffbdfd269fa7b4aa97d0746abe85bb073.tar.gz mitmproxy-b688661ffbdfd269fa7b4aa97d0746abe85bb073.tar.bz2 mitmproxy-b688661ffbdfd269fa7b4aa97d0746abe85bb073.zip |
Merge branch 'func'
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r-- | netlib/tcp.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index f49346a1..a5b9af22 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -486,10 +486,13 @@ class TCPServer(object): # none. if traceback: exc = traceback.format_exc() - print >> fp, '-'*40 - print >> fp, "Error in processing of request from %s:%s" % (client_address.host, client_address.port) - print >> fp, exc - print >> fp, '-'*40 + print('-'*40, file=fp) + print( + "Error in processing of request from %s:%s" % ( + client_address.host, client_address.port + ), file=fp) + print(exc, file=fp) + print('-'*40, file=fp) def handle_client_connection(self, conn, client_address): # pragma: no cover """ |