diff hgext/largefiles/overrides.py @ 52421:aa3261b40492

largefiles: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 05 Dec 2024 13:08:04 -0500
parents f4733654f144
children 24ee91ba9aa8
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Thu Dec 05 13:00:59 2024 -0500
+++ b/hgext/largefiles/overrides.py	Thu Dec 05 13:08:04 2024 -0500
@@ -19,8 +19,6 @@
 
 from mercurial.i18n import _
 
-from mercurial.pycompat import open
-
 from mercurial.hgweb import webcommands
 
 from mercurial import (
@@ -1829,7 +1827,7 @@
                             % lf
                         )
                 path = lfutil.usercachepath(repo.ui, hash)
-                with open(path, b"rb") as fpin:
+                with open(path, "rb") as fpin:
                     for chunk in util.filechunkiter(fpin):
                         fp.write(chunk)
         err = 0