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
--- 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)