This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbf9a04d78084: hgweb: adapt to socket._fileobject changes in
Python 3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2688?vs=
durin42 added a comment.
Oh, good catch. Fixed and passes tests on 2.7. :)
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2688
To: durin42, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
___
Mercurial-devel mailing list
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
yuja requested changes to this revision.
yuja added a comment.
This revision now requires changes to proceed.
As long as `self.request` is a socket object, we can use `request.makefile()`
on Python 2.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2688
To: duri
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
These are the only uses of socket._fileobject in the codebase, so
let's just do something inline here rather than adding something to
pycompat.
REPOSITORY
rHG