hgext/convert/subversion.py
changeset 30945 82f1ef8b4477
parent 30645 7a3e67bfa417
child 31226 21fa3d3688f3
--- a/hgext/convert/subversion.py	Mon Feb 13 20:06:38 2017 +0530
+++ b/hgext/convert/subversion.py	Mon Feb 13 22:15:28 2017 +0530
@@ -1306,7 +1306,7 @@
             self.setexec = []
 
         fd, messagefile = tempfile.mkstemp(prefix='hg-convert-')
-        fp = os.fdopen(fd, 'w')
+        fp = os.fdopen(fd, pycompat.sysstr('w'))
         fp.write(commit.desc)
         fp.close()
         try: