Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlerepo.py @ 36843: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 | 87b085a4f9d1 |
children | c68262401c8c |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Sat Mar 10 15:50:09 2018 +0900 +++ b/mercurial/bundlerepo.py Sat Mar 10 15:57:16 2018 +0900 @@ -349,7 +349,7 @@ suffix=suffix) self.tempfile = temp - with os.fdopen(fdtemp, pycompat.sysstr('wb')) as fptemp: + with os.fdopen(fdtemp, r'wb') as fptemp: fptemp.write(header) while True: chunk = readfn(2**18)