diff mercurial/httppeer.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 efebfa9b4cab
children 43815d87c6aa
line wrap: on
line diff
--- a/mercurial/httppeer.py	Sat Mar 10 15:50:09 2018 +0900
+++ b/mercurial/httppeer.py	Sat Mar 10 15:57:16 2018 +0900
@@ -459,7 +459,7 @@
         try:
             # dump bundle to disk
             fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg")
-            fh = os.fdopen(fd, pycompat.sysstr("wb"))
+            fh = os.fdopen(fd, r"wb")
             d = fp.read(4096)
             while d:
                 fh.write(d)