Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-urllib3 revision cadb12ccb5fa1cc55fcc1ccd8e742bee
This commit is contained in:
30
no-strict-OpenSSL-1.1.1.patch
Normal file
30
no-strict-OpenSSL-1.1.1.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
--- a/src/urllib3/__init__.py
|
||||
+++ b/src/urllib3/__init__.py
|
||||
@@ -22,27 +22,10 @@
|
||||
from .util.retry import Retry
|
||||
from .util.timeout import Timeout
|
||||
|
||||
-# Ensure that Python is compiled with OpenSSL 1.1.1+
|
||||
-# If the 'ssl' module isn't available at all that's
|
||||
-# fine, we only care if the module is available.
|
||||
try:
|
||||
import ssl
|
||||
except ImportError:
|
||||
pass
|
||||
-else:
|
||||
- if not ssl.OPENSSL_VERSION.startswith("OpenSSL "): # Defensive:
|
||||
- warnings.warn(
|
||||
- "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
|
||||
- f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION!r}. "
|
||||
- "See: https://github.com/urllib3/urllib3/issues/3020",
|
||||
- exceptions.NotOpenSSLWarning,
|
||||
- )
|
||||
- elif ssl.OPENSSL_VERSION_INFO < (1, 1, 1): # Defensive:
|
||||
- raise ImportError(
|
||||
- "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
|
||||
- f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION!r}. "
|
||||
- "See: https://github.com/urllib3/urllib3/issues/2168"
|
||||
- )
|
||||
|
||||
# === NOTE TO REPACKAGERS AND VENDORS ===
|
||||
# Please delete this block, this logic is only
|
Reference in New Issue
Block a user