diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-04-09 02:09:33 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-04-09 02:09:33 +0200 |
commit | e58f76aec1db9cc784a3b73c3050d010bb084968 (patch) | |
tree | 9246b960a95e82953cd8e49e0423e8166ec20543 /netlib/http_auth.py | |
parent | 7f7ccd3a1865e8e73f3d1813182d01c607d6e501 (diff) | |
download | mitmproxy-e58f76aec1db9cc784a3b73c3050d010bb084968.tar.gz mitmproxy-e58f76aec1db9cc784a3b73c3050d010bb084968.tar.bz2 mitmproxy-e58f76aec1db9cc784a3b73c3050d010bb084968.zip |
fix code smell
Diffstat (limited to 'netlib/http_auth.py')
-rw-r--r-- | netlib/http_auth.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netlib/http_auth.py b/netlib/http_auth.py index dca6e2f3..296e094c 100644 --- a/netlib/http_auth.py +++ b/netlib/http_auth.py @@ -3,7 +3,7 @@ from argparse import Action, ArgumentTypeError from . import http -class NullProxyAuth(): +class NullProxyAuth(object): """ No proxy auth at all (returns empty challange headers) """ @@ -59,12 +59,12 @@ class BasicProxyAuth(NullProxyAuth): return {self.CHALLENGE_HEADER:'Basic realm="%s"'%self.realm} -class PassMan(): +class PassMan(object): def test(self, username, password_token): return False -class PassManNonAnon: +class PassManNonAnon(PassMan): """ Ensure the user specifies a username, accept any password. """ @@ -74,7 +74,7 @@ class PassManNonAnon: return False -class PassManHtpasswd: +class PassManHtpasswd(PassMan): """ Read usernames and passwords from an htpasswd file """ @@ -89,7 +89,7 @@ class PassManHtpasswd: return bool(self.htpasswd.check_password(username, password_token)) -class PassManSingleUser: +class PassManSingleUser(PassMan): def __init__(self, username, password): self.username, self.password = username, password |