[PATCH] keepalive: drop check for unsupported version of Python

Jun Wu quark at fb.com
Tue Nov 29 11:50:10 EST 2016


Marked as Pre-reviewed. Thanks for the cleaning up!

Excerpts from Bryan O'Sullivan's message of 2016-11-29 08:38:54 -0800:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1480437473 28800
> #      Tue Nov 29 08:37:53 2016 -0800
> # Node ID 540fa940cd226021726c27475d4754cbf70246e4
> # Parent  6a8aff737a17ada068b8ce4501184eacc66e827f
> keepalive: drop check for unsupported version of Python
> 
> diff --git a/mercurial/keepalive.py b/mercurial/keepalive.py
> --- a/mercurial/keepalive.py
> +++ b/mercurial/keepalive.py
> @@ -333,8 +333,7 @@ class KeepAliveHandler(object):
>          # What follows mostly reimplements HTTPConnection.request()
>          # except it adds self.parent.addheaders in the mix.
>          headers = req.headers.copy()
> -        if sys.version_info >= (2, 4):
> -            headers.update(req.unredirected_hdrs)
> +        headers.update(req.unredirected_hdrs)
>          headers.update(self.parent.addheaders)
>          headers = dict((n.lower(), v) for n, v in headers.items())
>          skipheaders = {}


More information about the Mercurial-devel mailing list