Mercurial > public > mercurial-scm > hg
changeset 52363:6a8edf9f0a6d
profiling: stop using the `pycompat.open()` shim
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 04 Dec 2024 20:46:30 -0500 |
parents | 7ac8fdb70bae |
children | 7ac7d5f20cb0 |
files | mercurial/profiling.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/profiling.py Wed Dec 04 20:45:13 2024 -0500 +++ b/mercurial/profiling.py Wed Dec 04 20:46:30 2024 -0500 @@ -14,9 +14,6 @@ import sys from .i18n import _ -from .pycompat import ( - open, -) from . import ( encoding, error, @@ -298,7 +295,7 @@ self._fp = util.stringio() elif self._output: path = util.expandpath(self._output) - self._fp = open(path, b'wb') + self._fp = open(path, 'wb') elif pycompat.iswindows: # parse escape sequence by win32print() class uifp: