mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 12:19:27 +00:00
25 lines
712 B
Python
25 lines
712 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
requests._oauth
|
|
~~~~~~~~~~~~~~~
|
|
|
|
This module contains the path hack necessary for oauthlib to be vendored into
|
|
requests while allowing upstream changes.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
try:
|
|
from oauthlib.oauth1 import rfc5849
|
|
from oauthlib.common import extract_params
|
|
from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)
|
|
except ImportError:
|
|
directory = os.path.dirname(__file__)
|
|
path = os.path.join(directory, 'packages')
|
|
sys.path.insert(0, path)
|
|
from oauthlib.oauth1 import rfc5849
|
|
from oauthlib.common import extract_params
|
|
from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)
|