Mercurial > hg-stable
changeset 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 | 5917dc5d1e52 |
children | 4286ec1d9842 |
files | mercurial/keepalive.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
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