D2294: hgweb: open server logs in binary mode
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Feb 17 04:54:09 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd527803576b2: hgweb: open server logs in binary mode (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2294?vs=5799&id=5805
REVISION DETAIL
https://phab.mercurial-scm.org/D2294
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
@@ -273,7 +273,7 @@
def openlog(opt, default):
if opt and opt != '-':
- return open(opt, 'a')
+ return open(opt, 'ab')
return default
class MercurialHTTPServer(_mixin, httpservermod.httpserver, object):
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list