diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 11:24:41 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-07 11:24:41 +1200 |
commit | 3b81d678c4ff6ae8be563c3d087c4786648c24af (patch) | |
tree | d6bd90d1c34af5c10e1c0209d0191d9a09506857 /netlib/tcp.py | |
parent | 6d1b601ddf070ef1335be1804386fa0f4a2fcbd4 (diff) | |
download | mitmproxy-3b81d678c4ff6ae8be563c3d087c4786648c24af.tar.gz mitmproxy-3b81d678c4ff6ae8be563c3d087c4786648c24af.tar.bz2 mitmproxy-3b81d678c4ff6ae8be563c3d087c4786648c24af.zip |
Use print function after future import
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 """ |