aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 15:32:52 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 17:14:38 +0200
commit69e71097f7a9633a43d566b2a46aab370f07dce3 (patch)
tree117f58730fc647e219b362691f0365250b92c04f /netlib/tcp.py
parent40436ffb1f8293dde9217e2a0167e6c66b11d1f1 (diff)
downloadmitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.gz
mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.bz2
mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.zip
mark unused variables and arguments
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 65075776..77eb7b52 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -403,7 +403,7 @@ class _Connection(object):
# Verify Options (NONE/PEER/PEER|FAIL_IF_... and trusted CAs)
if verify_options is not None and verify_options is not SSL.VERIFY_NONE:
- def verify_cert(conn, cert, errno, err_depth, is_cert_verified):
+ def verify_cert(conn_, cert_, errno, err_depth, is_cert_verified):
if is_cert_verified:
return True
raise NetLibError(
@@ -439,7 +439,7 @@ class _Connection(object):
context.set_alpn_protos(alpn_protos)
elif alpn_select is not None:
# select application layer protocol
- def alpn_select_callback(conn, options):
+ def alpn_select_callback(conn_, options):
if alpn_select in options:
return bytes(alpn_select)
else: # pragma no cover
@@ -601,7 +601,7 @@ class BaseHandler(_Connection):
context.set_tlsext_servername_callback(handle_sni)
if request_client_cert:
- def save_cert(conn, cert, errno, depth, preverify_ok):
+ def save_cert(conn_, cert, errno_, depth_, preverify_ok_):
self.clientcert = certutils.SSLCert(cert)
# Return true to prevent cert verification error
return True
@@ -676,7 +676,7 @@ class TCPServer(object):
try:
while not self.__shutdown_request:
try:
- r, w, e = select.select(
+ r, w_, e_ = select.select(
[self.socket], [], [], poll_interval)
except select.error as ex: # pragma: no cover
if ex[0] == EINTR:
@@ -708,7 +708,7 @@ class TCPServer(object):
self.socket.close()
self.handle_shutdown()
- def handle_error(self, connection, client_address, fp=sys.stderr):
+ def handle_error(self, connection_, client_address, fp=sys.stderr):
"""
Called when handle_client_connection raises an exception.
"""