changeset 52369:535a1e686d7f

crecord: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 04 Dec 2024 21:05:33 -0500
parents 9746e618c151
children 00f5966f0483
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Wed Dec 04 21:03:05 2024 -0500
+++ b/mercurial/crecord.py	Wed Dec 04 21:05:33 2024 -0500
@@ -15,9 +15,6 @@
 import signal
 
 from .i18n import _
-from .pycompat import (
-    open,
-)
 from . import (
     diffhelper,
     encoding,
@@ -625,7 +622,7 @@
 
     chunkselector.stdscr = dummystdscr()
     if testfn and os.path.exists(testfn):
-        testf = open(testfn, b'r')
+        testf = open(testfn, 'r')
         # TODO: open in binary mode?
         testcommands = [x.rstrip('\n') for x in testf.readlines()]
         testf.close()