keepalive: remove Python 2 support code
Differential Revision: https://phab.mercurial-scm.org/D12298
--- 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