14
0

Accepting request 108727 from devel:languages:python

Useful Python lib

OBS-URL: https://build.opensuse.org/request/show/108727
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=1
This commit is contained in:
Stephan Kulow
2012-03-16 12:23:31 +00:00
committed by Git OBS Bridge
parent 891b8fa2c7
commit 09ef7cfd90
6 changed files with 36 additions and 797 deletions

View File

@@ -1,13 +0,0 @@
Index: b/urllib3/util/ssl_.py
===================================================================
--- a/urllib3/util/ssl_.py
+++ b/urllib3/util/ssl_.py
@@ -299,6 +299,8 @@ def ssl_wrap_socket(sock, keyfile=None,
if e.errno == errno.ENOENT:
raise SSLError(e)
raise
+ elif cert_reqs != ssl.CERT_NONE and hasattr(context, 'set_default_verify_paths'):
+ context.set_default_verify_paths()
if certfile:
context.load_cert_chain(certfile, keyfile)