D6965: convert: use pycompat.fsencode()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Oct 6 15:06:14 UTC 2019


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

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



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


More information about the Mercurial-devel mailing list