changeset 52412:f94efae47eb3

match: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 04 Dec 2024 22:14:15 -0500
parents c921c23a9681
children d98b56a1d41c
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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