diff mercurial/utils/procutil.py @ 52393:07a5a249faf8

procutil: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 04 Dec 2024 20:43:20 -0500
parents f4733654f144
children 1b9b6b4aa929
line wrap: on
line diff
--- a/mercurial/utils/procutil.py	Wed Dec 04 19:50:32 2024 -0500
+++ b/mercurial/utils/procutil.py	Wed Dec 04 20:43:20 2024 -0500
@@ -24,9 +24,6 @@
 )
 
 from ..i18n import _
-from ..pycompat import (
-    open,
-)
 
 from .. import (
     encoding,
@@ -343,7 +340,7 @@
             raise error.Abort(
                 _(b"command '%s' failed: %s") % (cmd, explainexit(code))
             )
-        with open(outname, b'rb') as fp:
+        with open(outname, 'rb') as fp:
             return fp.read()
     finally:
         try: