changeset 48886:127cc4535853

url: remove passing of strict This was needed to support Python 2.7. Differential Revision: https://phab.mercurial-scm.org/D12289
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 10:23:54 -0700
parents a2c59b361e0f
children 426cf9d98a5d
files mercurial/url.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/url.py	Thu Mar 03 08:04:33 2022 -0800
+++ b/mercurial/url.py	Mon Feb 21 10:23:54 2022 -0700
@@ -246,13 +246,9 @@
 
     # 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()