projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9427e1e
)
hax
author
Kenneth Reitz
<me@kennethreitz.com>
Tue, 1 May 2012 10:57:21 +0000
(06:57 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Tue, 1 May 2012 10:57:25 +0000
(06:57 -0400)
requests/auth.py
patch
|
blob
|
history
diff --git
a/requests/auth.py
b/requests/auth.py
index
3e900df
..
64f698e
100644
(file)
--- a/
requests/auth.py
+++ b/
requests/auth.py
@@
-20,6
+20,9
@@
CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'
if is_py2:
from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)
from oauthlib.common import extract_params
+else:
+ SIGNATURE_HMAC = None
+ SIGNATURE_TYPE_AUTH_HEADER = None
def _basic_auth_str(username, password):
"""Returns a Basic Auth string."""