Mercurial > public > mercurial-scm > hg-stable
diff mercurial/profiling.py @ 52395: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 | 499b19683c1b |
children | 5ff6fba7c4c5 |
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: