Mercurial > public > mercurial-scm > hg-stable
diff mercurial/posix.py @ 38197:aac4be30e250
py3: wrap tempfile.mkstemp() to use bytes path
This patch just flips the default to use a bytes path on Python 3.
ca1cf9b3cce7 is backed out as the bundlepath should be bytes now.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 May 2018 12:14:04 +0900 |
parents | 2d919ab6c5b4 |
children | cc9aa88792fe |
line wrap: on
line diff
--- a/mercurial/posix.py Thu May 03 18:39:58 2018 +0900 +++ b/mercurial/posix.py Sat May 26 12:14:04 2018 +0900 @@ -216,7 +216,7 @@ # check directly in path and don't leave checkisexec behind checkdir = path checkisexec = None - fh, fn = tempfile.mkstemp(dir=checkdir, prefix='hg-checkexec-') + fh, fn = pycompat.mkstemp(dir=checkdir, prefix='hg-checkexec-') try: os.close(fh) m = os.stat(fn).st_mode