Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
36834:1527f40de3b3 | 36835:5bc7ff103081 |
---|---|
1117 ''' | 1117 ''' |
1118 opts = pycompat.byteskwargs(opts) | 1118 opts = pycompat.byteskwargs(opts) |
1119 | 1119 |
1120 def writetemp(contents): | 1120 def writetemp(contents): |
1121 (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") | 1121 (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") |
1122 f = os.fdopen(fd, pycompat.sysstr("wb")) | 1122 f = os.fdopen(fd, r"wb") |
1123 f.write(contents) | 1123 f.write(contents) |
1124 f.close() | 1124 f.close() |
1125 return name | 1125 return name |
1126 | 1126 |
1127 problems = 0 | 1127 problems = 0 |