diff hgext/fastannotate/protocol.py @ 52391:6baf4c6ee14b

fastannotate: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 05 Dec 2024 13:11:41 -0500
parents f4733654f144
children
line wrap: on
line diff
--- a/hgext/fastannotate/protocol.py	Thu Dec 05 13:10:17 2024 -0500
+++ b/hgext/fastannotate/protocol.py	Thu Dec 05 13:11:41 2024 -0500
@@ -10,7 +10,6 @@
 import os
 
 from mercurial.i18n import _
-from mercurial.pycompat import open
 from mercurial import (
     error,
     extensions,
@@ -84,7 +83,7 @@
             for p in [actx.revmappath, actx.linelogpath]:
                 if not os.path.exists(p):
                     continue
-                with open(p, b'rb') as f:
+                with open(p, 'rb') as f:
                     content = f.read()
                 vfsbaselen = len(repo.vfs.base + b'/')
                 relpath = p[vfsbaselen:]