# HG changeset patch # User Gregory Szorc # Date 1645464765 25200 # Node ID 62baa61efe8fc1d0accb6ca0c3ed3cd3501014e8 # Parent 5917dc5d1e529690ac885efc6400f6ae8cf67d0e keepalive: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12298 diff -r 5917dc5d1e52 -r 62baa61efe8f mercurial/keepalive.py --- 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