Show More
@@ -910,7 +910,7 b' def debuginstall(ui, **opts):' | |||||
910 |
|
910 | |||
911 | def writetemp(contents): |
|
911 | def writetemp(contents): | |
912 | (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") |
|
912 | (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") | |
913 | f = os.fdopen(fd, "wb") |
|
913 | f = os.fdopen(fd, pycompat.sysstr("wb")) | |
914 | f.write(contents) |
|
914 | f.write(contents) | |
915 | f.close() |
|
915 | f.close() | |
916 | return name |
|
916 | return name |
@@ -73,7 +73,7 b' def isatty(fp):' | |||||
73 | # destined stdout with a pipe destined stdout (e.g. pager), we want line |
|
73 | # destined stdout with a pipe destined stdout (e.g. pager), we want line | |
74 | # buffering |
|
74 | # buffering | |
75 | if isatty(stdout): |
|
75 | if isatty(stdout): | |
76 | stdout = os.fdopen(stdout.fileno(), 'wb', 1) |
|
76 | stdout = os.fdopen(stdout.fileno(), pycompat.sysstr('wb'), 1) | |
77 |
|
77 | |||
78 | if pycompat.osname == 'nt': |
|
78 | if pycompat.osname == 'nt': | |
79 | from . import windows as platform |
|
79 | from . import windows as platform |
General Comments 0
You need to be logged in to leave comments.
Login now