Skip to content

Commit fcd9779

Browse files
committed
Lazy loading requests for quick start
1 parent a07c3ef commit fcd9779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2cli/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import string
1818
import hashlib
1919

20-
import requests
21-
2220
from .authcode import AuthCodeReceiver as _AuthCodeReceiver
2321

2422
try:
@@ -158,6 +156,8 @@ def __init__(
158156
"when http_client is in use")
159157
self._http_client = http_client
160158
else:
159+
import requests # Lazy loading
160+
161161
self._http_client = requests.Session()
162162
self._http_client.verify = True if verify is None else verify
163163
self._http_client.proxies = proxies

0 commit comments

Comments
 (0)