Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlerepo.py @ 38198:2ce60954b1b7
py3: wrap tempfile.mkdtemp() to use bytes path
This also flips the default to use a bytes path on Python 3.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 May 2018 12:20:36 +0900 |
parents | 0664be4f0c1f |
children | 6104b203bec8 |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Sat May 26 12:14:04 2018 +0900 +++ b/mercurial/bundlerepo.py Sat May 26 12:20:36 2018 +0900 @@ -15,7 +15,6 @@ import os import shutil -import tempfile from .i18n import _ from .node import nullid @@ -270,7 +269,7 @@ try: localrepo.localrepository.__init__(self, ui, repopath) except error.RepoError: - self._tempparent = tempfile.mkdtemp() + self._tempparent = pycompat.mkdtemp() localrepo.instance(ui, self._tempparent, 1) localrepo.localrepository.__init__(self, ui, self._tempparent) self.ui.setconfig('phases', 'publish', False, 'bundlerepo')