Mercurial > public > mercurial-scm > hg
diff mercurial/crecord.py @ 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 | f4733654f144 |
children | 006feec78d52 |
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()