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:
d74bd7e
)
Import oauthlib without the obsolete wrapper.
author
Matt McClure
<matt.mcclure@mapmyfitness.com>
Wed, 12 Dec 2012 15:45:00 +0000
(10:45 -0500)
committer
Matt McClure
<matt.mcclure@mapmyfitness.com>
Wed, 12 Dec 2012 15:45:00 +0000
(10:45 -0500)
Fixes #1000.
requests/auth.py
patch
|
blob
|
history
diff --git
a/requests/auth.py
b/requests/auth.py
index
f86c0cc
..
9724c7f
100644
(file)
--- a/
requests/auth.py
+++ b/
requests/auth.py
@@
-19,7
+19,8
@@
from .compat import urlparse, str
from .utils import parse_dict_header
try:
- from ._oauth import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER, extract_params)
+ from oauthlib.common import extract_params
+ from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)
except (ImportError, SyntaxError):
SIGNATURE_HMAC = None