# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 2024-12-05 01:57:35
# Node ID 89126d55e18c7652bc0ad7736fc2965a6872ee88
# Parent  c9baa3541b205c5ee768e282db2a65b838339165

extensions: stop using the `pycompat.open()` shim

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -19,9 +19,6 @@ from .i18n import (
     _,
     gettext,
 )
-from .pycompat import (
-    open,
-)
 
 from . import (
     cmdutil,
@@ -805,7 +802,7 @@ def _moduledoc(file):
 def _disabledhelp(path):
     '''retrieve help synopsis of a disabled extension (without importing)'''
     try:
-        with open(path, b'rb') as src:
+        with open(path, 'rb') as src:
             doc = _moduledoc(src)
     except IOError:
         return
@@ -888,7 +885,7 @@ def _disabledcmdtable(path):
 
     This may raise IOError or SyntaxError.
     """
-    with open(path, b'rb') as src:
+    with open(path, 'rb') as src:
         root = ast.parse(src.read(), path)
     cmdtable = {}