From 744bf0565a15a40f5c04cc8b0c1fe84a2ca489da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20G=C3=B3recki?= Date: Fri, 15 Jul 2016 17:15:51 +0100 Subject: Add myself to contributors list & PEP8 --- CONTRIBUTORS.txt | 3 +++ 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 -- cgit v1.2.3