Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 30988:d194f0dba7ac
py3: convert the mode argument of os.fdopen to unicodes
Couple of these from the earlier series got lost while rebasing. So this patch
converts them again.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 16 Feb 2017 17:30:35 +0530 |
parents | bd5694ce8beb |
children | 0b8356705de6 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed Feb 15 16:29:58 2017 -0800 +++ b/mercurial/debugcommands.py Thu Feb 16 17:30:35 2017 +0530 @@ -910,7 +910,7 @@ def writetemp(contents): (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") - f = os.fdopen(fd, "wb") + f = os.fdopen(fd, pycompat.sysstr("wb")) f.write(contents) f.close() return name