Mercurial > hg
changeset 43072:058c2468b2f5
convert: use pycompat.fsencode()
This avoids a
`TypeError: Can't mix strings and bytes in path components`.
Differential Revision: https://phab.mercurial-scm.org/D6965
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 04 Oct 2019 16:07:32 -0400 |
parents | 830eacef67f8 |
children | 5c9c71cde1c9 |
files | hgext/convert/gnuarch.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py Sat Oct 05 15:28:52 2019 -0400 +++ b/hgext/convert/gnuarch.py Fri Oct 04 16:07:32 2019 -0400 @@ -85,7 +85,7 @@ # Get name of temporary directory version = self.treeversion.split('/') - self.tmppath = os.path.join(tempfile.gettempdir(), + self.tmppath = os.path.join(pycompat.fsencode(tempfile.gettempdir()), 'hg-%s' % version[1]) # Generate parents dictionary