mercurial/httppeer.py
changeset 36835 5bc7ff103081
parent 36430 efebfa9b4cab
child 36959 43815d87c6aa
--- 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)