# HG changeset patch # User Gregory Szorc # Date 2022-02-21 17:23:54 # Node ID 127cc4535853f6a6a29447d0b45637b3d3e001f1 # Parent a2c59b361e0f6dc4878fb04889e40d0cefd39acf url: remove passing of strict This was needed to support Python 2.7. Differential Revision: https://phab.mercurial-scm.org/D12289 diff --git a/mercurial/url.py b/mercurial/url.py --- a/mercurial/url.py +++ b/mercurial/url.py @@ -246,13 +246,9 @@ def _generic_proxytunnel(self): # majority of the following code is duplicated from # httplib.HTTPConnection as there are no adequate places to - # override functions to provide the needed functionality - # strict was removed in Python 3.4. - kwargs = {} - if not pycompat.ispy3: - kwargs[b'strict'] = self.strict + # override functions to provide the needed functionality. - res = self.response_class(self.sock, method=self._method, **kwargs) + res = self.response_class(self.sock, method=self._method) while True: version, status, reason = res._read_status()