python/python-2.7.9-sles-disable-verification-by-default.patch
2015-05-21 13:58:17 +00:00

15 lines
578 B
Diff

Index: Python-2.7.9/Lib/ssl.py
===================================================================
--- Python-2.7.9.orig/Lib/ssl.py 2015-05-14 15:02:05.872792333 +0200
+++ Python-2.7.9/Lib/ssl.py 2015-05-14 15:23:27.874013424 +0200
@@ -469,7 +469,8 @@
return context
# Used by http.client if no context is explicitly passed.
-_create_default_https_context = create_default_context
+# PATCH-SLE: still use unverified context. see PEP476
+_create_default_https_context = _create_unverified_context
# Backwards compatibility alias, even though it's not a public name.