keepalive: remove Python 2 support code
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:32:45 -0700
changeset 48895 62baa61efe8f
parent 48894 5917dc5d1e52
child 48896 4286ec1d9842
keepalive: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12298
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