changeset 52361: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 fca7d38e040b
children 7ac8fdb70bae
files mercurial/utils/procutil.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
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: