Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statprof.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 | c8e8e14a5ee9 |
children | af402c6b90db |
line wrap: on
line diff
--- a/mercurial/statprof.py Thu May 03 18:39:58 2018 +0900 +++ b/mercurial/statprof.py Sat May 26 12:14:04 2018 +0900 @@ -112,7 +112,6 @@ import os import signal import sys -import tempfile import threading import time @@ -691,7 +690,7 @@ file=fp) return - fd, path = tempfile.mkstemp() + fd, path = pycompat.mkstemp() file = open(path, "w+")