mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Update requests-oauthlib-1.3.0
This commit is contained in:
parent
e55576fd80
commit
f165d2d080
15 changed files with 552 additions and 257 deletions
|
@ -1,22 +1,19 @@
|
|||
import logging
|
||||
|
||||
from .oauth1_auth import OAuth1
|
||||
from .oauth1_session import OAuth1Session
|
||||
from .oauth2_auth import OAuth2
|
||||
from .oauth2_session import OAuth2Session, TokenUpdated
|
||||
|
||||
__version__ = '0.6.1'
|
||||
__version__ = "1.3.0"
|
||||
|
||||
import requests
|
||||
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.')
|
||||
|
||||
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."
|
||||
)
|
||||
raise Warning(msg % requests.__version__)
|
||||
|
||||
import logging
|
||||
try: # Python 2.7+
|
||||
from logging import NullHandler
|
||||
except ImportError:
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
logging.getLogger('requests_oauthlib').addHandler(NullHandler())
|
||||
logging.getLogger("requests_oauthlib").addHandler(logging.NullHandler())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue