python3Packages.certifi: fix build on Python 3.10
The previous commit to the patch removed too much when adjusting to upstream deprecating 3.7
This commit is contained in:
committed by
Martin Weinelt
parent
996e0f2087
commit
8f81cc2fd8
@@ -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
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user