2018-09-17 00:27:00 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from .oauth1_auth import OAuth1
|
|
|
|
from .oauth1_session import OAuth1Session
|
|
|
|
from .oauth2_auth import OAuth2
|
|
|
|
from .oauth2_session import OAuth2Session, TokenUpdated
|
|
|
|
|
2022-11-07 18:06:49 +00:00
|
|
|
__version__ = "1.3.1"
|
2018-09-17 00:27:00 +00:00
|
|
|
|
|
|
|
import requests
|
2022-01-24 04:07:52 +00:00
|
|
|
|
|
|
|
if requests.__version__ < "2.0.0":
|
|
|
|
msg = (
|
|
|
|
"You are using requests version %s, which is older than "
|
|
|
|
"requests-oauthlib expects, please upgrade to 2.0.0 or later."
|
|
|
|
)
|
2018-09-17 00:27:00 +00:00
|
|
|
raise Warning(msg % requests.__version__)
|
|
|
|
|
2022-01-24 04:07:52 +00:00
|
|
|
logging.getLogger("requests_oauthlib").addHandler(logging.NullHandler())
|