Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/url.py Fri Feb 15 13:16:07 2019 -0800 +++ b/mercurial/url.py Fri Feb 15 13:22:01 2019 -0800 @@ -216,9 +216,14 @@ # 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['strict'] = self.strict + res = self.response_class(self.sock, - strict=self.strict, - method=self._method) + method=self._method, + **kwargs) while True: version, status, reason = res._read_status()