match: stop using the `pycompat.open()` shim
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 04 Dec 2024 22:14:15 -0500
changeset 52380 f94efae47eb3
parent 52379 c921c23a9681
child 52381 d98b56a1d41c
match: stop using the `pycompat.open()` shim
mercurial/match.py
--- a/mercurial/match.py	Wed Dec 04 22:13:05 2024 -0500
+++ b/mercurial/match.py	Wed Dec 04 22:14:15 2024 -0500
@@ -24,7 +24,6 @@
 )
 
 from .i18n import _
-from .pycompat import open
 from . import (
     encoding,
     error,
@@ -1737,7 +1736,7 @@
     syntax = b'relre:'
     patterns = []
 
-    fp = open(filepath, b'rb')
+    fp = open(filepath, 'rb')
     for lineno, line in enumerate(fp, start=1):
         if b"#" in line:
             global _commentre