Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Python25
python
python-2.5-https_warn.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-2.5-https_warn.patch of Package python
--- Lib/urllib.py +++ Lib/urllib.py @@ -28,6 +28,7 @@ import time import sys from urlparse import urljoin as basejoin +import warnings __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", "urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus", @@ -1281,7 +1282,10 @@ 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 if sys.platform == 'darwin':
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor