aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index c8a02ab4..4f5423e4 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -471,7 +471,7 @@ class TCPServer(object):
self.socket.close()
self.handle_shutdown()
- def handle_error(self, request, client_address, fp=sys.stderr):
+ def handle_error(self, connection, client_address, fp=sys.stderr):
"""
Called when handle_client_connection raises an exception.
"""
@@ -479,13 +479,13 @@ class TCPServer(object):
# none.
if traceback:
exc = traceback.format_exc()
- print('-'*40, file=fp)
+ 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)
+ print('-' * 40, file=fp)
def handle_client_connection(self, conn, client_address): # pragma: no cover
"""