Revision d0c8c01d lib/http/auth.py
b/lib/http/auth.py | ||
---|---|---|
198 | 198 |
|
199 | 199 |
""" |
200 | 200 |
try: |
201 |
creds = base64.b64decode(in_data.encode('ascii')).decode('ascii')
|
|
201 |
creds = base64.b64decode(in_data.encode("ascii")).decode("ascii")
|
|
202 | 202 |
except (TypeError, binascii.Error, UnicodeError): |
203 | 203 |
logging.exception("Error when decoding Basic authentication credentials") |
204 | 204 |
return False |
Also available in: Unified diff