diff options
| author | Dariusz Górecki <darek.krk@gmail.com> | 2016-07-15 17:15:51 +0100 |
|---|---|---|
| committer | Dariusz Górecki <darek.krk@gmail.com> | 2016-07-15 17:15:51 +0100 |
| commit | 744bf0565a15a40f5c04cc8b0c1fe84a2ca489da (patch) | |
| tree | 2b5a93ed6fc63979d5798da1d64bfa762c19272a | |
| parent | 362a5812733ccc97336cea9ba5b1deebc3120ab2 (diff) | |
| download | pyramid-744bf0565a15a40f5c04cc8b0c1fe84a2ca489da.tar.gz pyramid-744bf0565a15a40f5c04cc8b0c1fe84a2ca489da.tar.bz2 pyramid-744bf0565a15a40f5c04cc8b0c1fe84a2ca489da.zip | |
Add myself to contributors list & PEP8
| -rw-r--r-- | CONTRIBUTORS.txt | 3 | ||||
| -rw-r--r-- | pyramid/authentication.py | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 4edf1b4e9..492c2fac2 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -256,3 +256,6 @@ Contributors - Amos Latteier, 2015/10/22 - Rami Chousein, 2015/10/28 + +- Dariusz Gorecki, 2016/07/15 + diff --git a/pyramid/authentication.py b/pyramid/authentication.py index c6fd8f466..2a54be34d 100644 --- a/pyramid/authentication.py +++ b/pyramid/authentication.py @@ -1145,9 +1145,10 @@ class BasicAuthAuthenticationPolicy(CallbackAuthenticationPolicy): return [('WWW-Authenticate', 'Basic realm="%s"' % self.realm)] def callback(self, username, request): - # Username arg is ignored. Unfortunately extract_http_basic_credentials winds up - # getting called twice when authenticated_userid is called. Avoiding - # that, however, winds up duplicating logic from the superclass. + # Username arg is ignored. Unfortunately + # extract_http_basic_credentials winds up getting called twice when + # authenticated_userid is called. Avoiding that, however, + # winds up duplicating logic from the superclass. credentials = extract_http_basic_credentials(request) if credentials: username, password = credentials |
