diff mercurial/wireproto.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 66de4555cefd
children ef68493d652b
line wrap: on
line diff
--- a/mercurial/wireproto.py	Sat Mar 10 15:50:09 2018 +0900
+++ b/mercurial/wireproto.py	Sat Mar 10 15:57:16 2018 +0900
@@ -1027,7 +1027,7 @@
 
             # write bundle data to temporary file because it can be big
             fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-')
-            fp = os.fdopen(fd, pycompat.sysstr('wb+'))
+            fp = os.fdopen(fd, r'wb+')
             r = 0
             try:
                 proto.forwardpayload(fp)