Skip to content

Commit 009e683

Browse files
committed
limit requests import to Session
1 parent b7c4bff commit 009e683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from datetime import datetime, timezone
66

77
# Third-party
8-
import requests
98
from git import InvalidGitRepositoryError, NoSuchPathError, Repo
109
from pandas import PeriodIndex
10+
from requests import Session
1111
from requests.adapters import HTTPAdapter, Retry
1212

1313
# Constants
@@ -41,7 +41,7 @@ def get_session(accept_header=None):
4141
status_forcelist=STATUS_FORCELIST,
4242
)
4343

44-
session = requests.Session()
44+
session = Session()
4545

4646
headers = {"User-Agent": USER_AGENT}
4747
if accept_header:

0 commit comments

Comments
 (0)