Skip to content
Myr

syntax errors

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d79e1bb · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:requests/auth.py+4 added-4 removed
13 unmodified lines
1415from .compat import urlparse, str, is_py216from .utils import randombytes, parse_dict_header1718CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'1920if is_py2:18try:19 from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)20 from oauthlib.common import extract_params23else:21except (ImportError, SyntaxError):22 SIGNATURE_HMAC = None23 SIGNATURE_TYPE_AUTH_HEADER = None2425CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'2627def _basic_auth_str(username, password):28 """Returns a Basic Auth string."""2930 return 'Basic ' + b64encode(('%s:%s' % (username, password)).encode('latin1')).strip().decode('latin1')
153 unmodified lines