debugcommands: add an r prefix to make file mode for fdopen a sysstr
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 14:10:34 -0500
changeset 36586 ff6b8484400b
parent 36585 26a6b62919e2
child 36587 dfcf589a4031
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
mercurial/debugcommands.py
--- 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)