Patchwork D6965: convert: use pycompat.fsencode()

login
register
mail settings
Submitter phabricator
Date Oct. 6, 2019, 3:06 p.m.
Message ID <3afe81c5df23f7bddd4fefc767ad2ae0@localhost.localdomain>
Download mbox | patch
Permalink /patch/42021/
State Not Applicable
Headers show

Comments

phabricator - Oct. 6, 2019, 3:06 p.m.
Closed by commit rHG058c2468b2f5: convert: use pycompat.fsencode() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6965?vs=16805&id=16894

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6965/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6965

AFFECTED FILES
  hgext/convert/gnuarch.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/convert/gnuarch.py b/hgext/convert/gnuarch.py
--- a/hgext/convert/gnuarch.py
+++ b/hgext/convert/gnuarch.py
@@ -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