# HG changeset patch # User Augie Fackler # Date 2018-03-02 19:10:34 # Node ID ff6b8484400be858788f5b779c7aac91d954d646 # Parent 26a6b62919e225fd99e1ca5ed3cc9bd895f2e346 debugcommands: add an r prefix to make file mode for fdopen a sysstr # skip-blame just an r prefix Differential Revision: https://phab.mercurial-scm.org/D2562 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -2257,7 +2257,7 @@ def debugserve(ui, repo, **opts): if opts['logiofd']: # Line buffered because output is line based. - logfh = os.fdopen(int(opts['logiofd']), 'ab', 1) + logfh = os.fdopen(int(opts['logiofd']), r'ab', 1) elif opts['logiofile']: logfh = open(opts['logiofile'], 'ab', 1)