From patchwork Sun Oct 6 15:06:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6965: convert: use pycompat.fsencode() From: phabricator X-Patchwork-Id: 42021 Message-Id: <3afe81c5df23f7bddd4fefc767ad2ae0@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sun, 6 Oct 2019 15:06:14 +0000 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 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