equal
deleted
inserted
replaced
1140 Returns 0 on success. |
1140 Returns 0 on success. |
1141 ''' |
1141 ''' |
1142 opts = pycompat.byteskwargs(opts) |
1142 opts = pycompat.byteskwargs(opts) |
1143 |
1143 |
1144 def writetemp(contents): |
1144 def writetemp(contents): |
1145 (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") |
1145 (fd, name) = pycompat.mkstemp(prefix="hg-debuginstall-") |
1146 f = os.fdopen(fd, r"wb") |
1146 f = os.fdopen(fd, r"wb") |
1147 f.write(contents) |
1147 f.write(contents) |
1148 f.close() |
1148 f.close() |
1149 return name |
1149 return name |
1150 |
1150 |