From: Matt McClure Date: Wed, 12 Dec 2012 15:45:00 +0000 (-0500) Subject: Import oauthlib without the obsolete wrapper. X-Git-Tag: v1.0.0~82^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f69934fb24a9e59f76a2c17993082259bf3a4d90;p=services%2Fpython-requests.git Import oauthlib without the obsolete wrapper. Fixes #1000. --- diff --git a/requests/auth.py b/requests/auth.py index f86c0cc..9724c7f 100644 --- 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