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
--- 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