mercurial/profiling.py
changeset 52363 6a8edf9f0a6d
parent 51893 499b19683c1b
child 52400 5ff6fba7c4c5
--- 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: