Mercurial > public > mercurial-scm > hg-stable
diff mercurial/keepalive.py @ 48986:62baa61efe8f
keepalive: remove Python 2 support code
Differential Revision: https://phab.mercurial-scm.org/D12298
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:32:45 -0700 |
parents | 6000f5b25c9b |
children | dea766fca7e1 |
line wrap: on
line diff
--- a/mercurial/keepalive.py Mon Feb 21 10:31:53 2022 -0700 +++ b/mercurial/keepalive.py Mon Feb 21 10:32:45 2022 -0700 @@ -398,12 +398,8 @@ # modification from socket.py def __init__(self, sock, debuglevel=0, strict=0, method=None): - extrakw = {} - if not pycompat.ispy3: - extrakw['strict'] = True - extrakw['buffering'] = True httplib.HTTPResponse.__init__( - self, sock, debuglevel=debuglevel, method=method, **extrakw + self, sock, debuglevel=debuglevel, method=method ) self.fileno = sock.fileno self.code = None