Skip to content

Commit e331a28

Browse files
authored
Remove unused extraction call (#7292)
1 parent 753fd08 commit e331a28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/requests/adapters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
from .structures import CaseInsensitiveDict
5050
from .utils import (
5151
DEFAULT_CA_BUNDLE_PATH,
52-
extract_zipped_paths,
5352
get_auth_from_url,
5453
get_encoding_from_headers,
5554
prepend_scheme_if_needed,
@@ -299,7 +298,7 @@ def cert_verify(self, conn, url, verify, cert):
299298
cert_loc = verify
300299

301300
if not cert_loc:
302-
cert_loc = extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)
301+
cert_loc = DEFAULT_CA_BUNDLE_PATH
303302

304303
if not cert_loc or not os.path.exists(cert_loc):
305304
raise OSError(

src/requests/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
NETRC_FILES = (".netrc", "_netrc")
6161

62+
# Certificate is extracted by certifi when needed.
6263
DEFAULT_CA_BUNDLE_PATH = certs.where()
6364

6465
DEFAULT_PORTS = {"http": 80, "https": 443}

0 commit comments

Comments
 (0)