D12298: keepalive: remove Python 2 support code
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Mar 2 23:31:06 UTC 2022
indygreg created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12298
AFFECTED FILES
mercurial/keepalive.py
CHANGE DETAILS
diff --git a/mercurial/keepalive.py b/mercurial/keepalive.py
--- a/mercurial/keepalive.py
+++ b/mercurial/keepalive.py
@@ -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
To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list