Mercurial > public > mercurial-scm > hg-stable
changeset 52413:d98b56a1d41c
changegroup: stop using the `pycompat.open()` shim
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 04 Dec 2024 22:16:57 -0500 |
parents | f94efae47eb3 |
children | ea79fa8a36ae |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Dec 04 22:14:15 2024 -0500 +++ b/mercurial/changegroup.py Wed Dec 04 22:16:57 2024 -0500 @@ -17,7 +17,6 @@ nullrev, short, ) -from .pycompat import open from . import ( error, @@ -87,7 +86,7 @@ else: # Increase default buffer size because default is usually # small (4k is common on Linux). - fh = open(filename, b"wb", 131072) + fh = open(filename, "wb", 131072) else: fd, filename = pycompat.mkstemp(prefix=b"hg-bundle-", suffix=b".hg") fh = os.fdopen(fd, "wb")