diff mercurial/ui.py @ 30925:82f1ef8b4477

py3: convert the mode argument of os.fdopen to unicodes (2 of 2)
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 13 Feb 2017 22:15:28 +0530
parents 7080652af6e6
children 120682fce099
line wrap: on
line diff
--- a/mercurial/ui.py	Mon Feb 13 20:06:38 2017 +0530
+++ b/mercurial/ui.py	Mon Feb 13 22:15:28 2017 +0530
@@ -1038,7 +1038,7 @@
                                       suffix=extra['suffix'], text=True,
                                       dir=rdir)
         try:
-            f = os.fdopen(fd, "w")
+            f = os.fdopen(fd, pycompat.sysstr("w"))
             f.write(text)
             f.close()