summaryrefslogtreecommitdiff
path: root/game/python-extra/requests_oauthlib/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'game/python-extra/requests_oauthlib/__init__.py')
-rw-r--r--game/python-extra/requests_oauthlib/__init__.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/game/python-extra/requests_oauthlib/__init__.py b/game/python-extra/requests_oauthlib/__init__.py
new file mode 100644
index 0000000..0d3e49f
--- /dev/null
+++ b/game/python-extra/requests_oauthlib/__init__.py
@@ -0,0 +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__ = "1.3.1"
+
+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."
+ )
+ raise Warning(msg % requests.__version__)
+
+logging.getLogger("requests_oauthlib").addHandler(logging.NullHandler())