diff mercurial/debugcommands.py @ 36835:5bc7ff103081

py3: use r'' instead of sysstr('') to get around code transformer Fewer function calls should be better.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Mar 2018 15:57:16 +0900
parents 15c050b5d599
children 31581528f242
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Mar 10 15:50:09 2018 +0900
+++ b/mercurial/debugcommands.py	Sat Mar 10 15:57:16 2018 +0900
@@ -1119,7 +1119,7 @@
 
     def writetemp(contents):
         (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-")
-        f = os.fdopen(fd, pycompat.sysstr("wb"))
+        f = os.fdopen(fd, r"wb")
         f.write(contents)
         f.close()
         return name