# HG changeset patch # User Augie Fackler # Date 2018-02-17 06:09:56 # Node ID 46c97973ee46619438f54eac22f7ec5492384a0d # Parent f718e8ec1c824efbcd14d2c908757765a20af696 hgweb: open server logs in binary mode This is consistent with when we're logging to stdout, so we don't have to do something annoyingly complicated in the logging infrastructure. Differential Revision: https://phab.mercurial-scm.org/D2294 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 @@ except ImportError: def openlog(opt, default): if opt and opt != '-': - return open(opt, 'a') + return open(opt, 'ab') return default class MercurialHTTPServer(_mixin, httpservermod.httpserver, object):