aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http_auth.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/http_auth.py
parent40436ffb1f8293dde9217e2a0167e6c66b11d1f1 (diff)
downloadmitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.gz
mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.bz2
mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.zip
mark unused variables and arguments
Diffstat (limited to 'netlib/http_auth.py')
-rw-r--r--netlib/http_auth.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/netlib/http_auth.py b/netlib/http_auth.py
index 0143760c..adab4aed 100644
--- a/netlib/http_auth.py
+++ b/netlib/http_auth.py
@@ -12,12 +12,13 @@ class NullProxyAuth(object):
def __init__(self, password_manager):
self.password_manager = password_manager
- def clean(self, headers):
+ def clean(self, headers_):
"""
Clean up authentication headers, so they're not passed upstream.
"""
+ pass
- def authenticate(self, headers):
+ def authenticate(self, headers_):
"""
Tests that the user is allowed to use the proxy
"""
@@ -62,7 +63,7 @@ class BasicProxyAuth(NullProxyAuth):
class PassMan(object):
- def test(self, username, password_token):
+ def test(self, username_, password_token_):
return False
@@ -72,7 +73,7 @@ class PassManNonAnon(PassMan):
Ensure the user specifies a username, accept any password.
"""
- def test(self, username, password_token):
+ def test(self, username, password_token_):
if username:
return True
return False