Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/certifi/env.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/certifi/core.py b/certifi/core.py
index 1c9661c..7039be3 100644
index 1c9661c..d904382 100644
--- a/certifi/core.py
+++ b/certifi/core.py
@@ -4,6 +4,7 @@ certifi.py
Expand Down Expand Up @@ -51,3 +51,11 @@ index 1c9661c..7039be3 100644

def where() -> str:
# This is slightly terrible, but we want to delay extracting the
@@ -80,4 +92,6 @@ else:
return _CACERT_PATH

def contents() -> str:
- return read_text("certifi", "cacert.pem", encoding="ascii")
+ if _CACERT_PATH is not None:
+ return open(_CACERT_PATH, encoding="utf-8").read()
+ return read_text("certifi", "cacert.pem", encoding="utf-8")
Loading