File python-3.0-https_warn.patch of Package python3

Index: Lib/urllib/request.py
===================================================================
--- Lib/urllib/request.py.orig
+++ Lib/urllib/request.py
@@ -2090,7 +2090,10 @@ def getproxies_environment():
     for name, value in os.environ.items():
         name = name.lower()
         if value and name[-6:] == '_proxy':
-            proxies[name[:-6]] = value
+            if name == 'https_proxy':
+                warnings.warn ("urllib can't handle https proxies, your https_proxy setting will not work", RuntimeWarning, stacklevel=2)
+            else:
+                proxies[name[:-6]] = value
     return proxies
 
 def proxy_bypass_environment(host):
openSUSE Build Service is sponsored by