mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Use print function after future import
This commit is contained in:
parent
6d1b601ddf
commit
3b81d678c4
@ -486,10 +486,13 @@ class TCPServer(object):
|
|||||||
# none.
|
# none.
|
||||||
if traceback:
|
if traceback:
|
||||||
exc = traceback.format_exc()
|
exc = traceback.format_exc()
|
||||||
print >> fp, '-'*40
|
print('-'*40, file=fp)
|
||||||
print >> fp, "Error in processing of request from %s:%s" % (client_address.host, client_address.port)
|
print(
|
||||||
print >> fp, exc
|
"Error in processing of request from %s:%s" % (
|
||||||
print >> fp, '-'*40
|
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
|
def handle_client_connection(self, conn, client_address): # pragma: no cover
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user