D2688: hgweb: adapt to socket._fileobject changes in Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Tue Mar 6 13:42:33 EST 2018
durin42 updated this revision to Diff 6673.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2688?vs=6647&id=6673
REVISION DETAIL
https://phab.mercurial-scm.org/D2688
AFFECTED FILES
mercurial/hgweb/server.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -257,8 +257,8 @@
def setup(self):
self.connection = self.request
- self.rfile = socket._fileobject(self.request, "rb", self.rbufsize)
- self.wfile = socket._fileobject(self.request, "wb", self.wbufsize)
+ self.rfile = self.request.makefile(r"rb", self.rbufsize)
+ self.wfile = self.request.makefile(r"wb", self.wbufsize)
try:
import threading
To: durin42, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list