We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c675e1 commit 73f27b3Copy full SHA for 73f27b3
certifi/core.py
@@ -38,9 +38,13 @@ def where() -> str:
38
39
return _CACERT_PATH
40
41
+
42
+ def contents() -> str:
43
+ return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
44
45
else:
46
- from importlib.resources import path as get_path
47
+ from importlib.resources import path as get_path, read_text
48
49
_CACERT_CTX = None
50
_CACERT_PATH = None
@@ -71,6 +75,9 @@ def where() -> str:
71
75
72
76
73
77
78
79
+ return read_text("certifi", "cacert.pem", encoding="ascii")
80
74
81
def contents() -> str:
82
with open(where(), "r", encoding="ascii") as fp:
83
return fp.read()
0 commit comments