Mercurial > hg
diff hgext/convert/subversion.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 | 7a3e67bfa417 |
children | 21fa3d3688f3 |
line wrap: on
line diff
--- 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: