changeset 36586:ff6b8484400b

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
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 14:10:34 -0500
parents 26a6b62919e2
children dfcf589a4031
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Mar 02 14:09:50 2018 -0500
+++ b/mercurial/debugcommands.py	Fri Mar 02 14:10:34 2018 -0500
@@ -2257,7 +2257,7 @@
 
     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)