Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/requests_oauthlib/__init__.py: 92%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

12 statements  

1# ruff: noqa: F401 

2import logging 

3 

4from .oauth1_auth import OAuth1 

5from .oauth1_session import OAuth1Session 

6from .oauth2_auth import OAuth2 

7from .oauth2_session import OAuth2Session, TokenUpdated 

8 

9__version__ = "2.0.0" 

10 

11import requests 

12 

13if requests.__version__ < "2.0.0": 

14 msg = ( 

15 "You are using requests version %s, which is older than " 

16 "requests-oauthlib expects, please upgrade to 2.0.0 or later." 

17 ) 

18 raise Warning(msg % requests.__version__) 

19 

20logging.getLogger("requests_oauthlib").addHandler(logging.NullHandler())