Mercurial > public > mercurial-scm > hg
comparison mercurial/url.py @ 41711:544035846830
url: don't pass strict argument on Python 3
The argument was removed in Python 3.4.
Differential Revision: https://phab.mercurial-scm.org/D5975
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 15 Feb 2019 13:22:01 -0800 |
parents | 4028897dfa05 |
children | 2a3c0106ded9 |
comparison
equal
deleted
inserted
replaced
41710:4028897dfa05 | 41711:544035846830 |
---|---|
214 self.send('\r\n') | 214 self.send('\r\n') |
215 | 215 |
216 # majority of the following code is duplicated from | 216 # majority of the following code is duplicated from |
217 # httplib.HTTPConnection as there are no adequate places to | 217 # httplib.HTTPConnection as there are no adequate places to |
218 # override functions to provide the needed functionality | 218 # override functions to provide the needed functionality |
219 # strict was removed in Python 3.4. | |
220 kwargs = {} | |
221 if not pycompat.ispy3: | |
222 kwargs['strict'] = self.strict | |
223 | |
219 res = self.response_class(self.sock, | 224 res = self.response_class(self.sock, |
220 strict=self.strict, | 225 method=self._method, |
221 method=self._method) | 226 **kwargs) |
222 | 227 |
223 while True: | 228 while True: |
224 version, status, reason = res._read_status() | 229 version, status, reason = res._read_status() |
225 if status != httplib.CONTINUE: | 230 if status != httplib.CONTINUE: |
226 break | 231 break |