Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 52574:cac851655570
debugwireproto: replace a trivial file read with the `util` function
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 17 Dec 2024 00:56:01 -0500 |
parents | 8dede0df9de9 |
children | 0e11e532c958 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Dec 17 00:47:42 2024 -0500 +++ b/mercurial/debugcommands.py Tue Dec 17 00:56:01 2024 -0500 @@ -4712,8 +4712,7 @@ continue if line.startswith(b'BODYFILE '): - with open(line.split(b' ', 1), 'rb') as fh: - body = fh.read() + body = util.readfile(line.split(b' ', 1)) elif line.startswith(b'frame '): frame = wireprotoframing.makeframefromhumanstring( line[len(b'frame ') :]