We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a07c3ef commit fcd9779Copy full SHA for fcd9779
1 file changed
oauth2cli/oauth2.py
@@ -17,8 +17,6 @@
17
import string
18
import hashlib
19
20
-import requests
21
-
22
from .authcode import AuthCodeReceiver as _AuthCodeReceiver
23
24
try:
@@ -158,6 +156,8 @@ def __init__(
158
156
"when http_client is in use")
159
157
self._http_client = http_client
160
else:
+ import requests # Lazy loading
+
161
self._http_client = requests.Session()
162
self._http_client.verify = True if verify is None else verify
163
self._http_client.proxies = proxies
0 commit comments