# HG changeset patch
# User Bryan O'Sullivan <bry...@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 = {}
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to