Mercurial > hg
changeset 25207:6358391453f3
url: drop awful hack around bug in Python 2.4
It's all just a memory now.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 18 May 2015 16:51:02 -0500 |
parents | 18a032704f0a |
children | 5a6820f8da4d |
files | mercurial/url.py |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/url.py Mon May 18 16:47:26 2015 -0500 +++ b/mercurial/url.py Mon May 18 16:51:02 2015 -0500 @@ -120,16 +120,6 @@ if e.startswith('.') and host.endswith(e[1:]): return None - # work around a bug in Python < 2.4.2 - # (it leaves a "\n" at the end of Proxy-authorization headers) - baseclass = req.__class__ - class _request(baseclass): - def add_header(self, key, val): - if key.lower() == 'proxy-authorization': - val = val.strip() - return baseclass.add_header(self, key, val) - req.__class__ = _request - return urllib2.ProxyHandler.proxy_open(self, req, proxy, type_) def _gen_sendfile(orgsend):