diff hgext/convert/monotone.py @ 52392:4c70a70a9bcd

convert: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 05 Dec 2024 13:15:44 -0500
parents f4733654f144
children 24ee91ba9aa8
line wrap: on
line diff
--- a/hgext/convert/monotone.py	Thu Dec 05 13:11:41 2024 -0500
+++ b/hgext/convert/monotone.py	Thu Dec 05 13:15:44 2024 -0500
@@ -15,7 +15,6 @@
 )
 
 from mercurial.i18n import _
-from mercurial.pycompat import open
 from mercurial import (
     error,
     pycompat,
@@ -48,7 +47,7 @@
         if not os.path.exists(os.path.join(path, b'_MTN')):
             # Could be a monotone repository (SQLite db file)
             try:
-                with open(path, b'rb') as f:
+                with open(path, 'rb') as f:
                     header = f.read(16)
             except IOError:
                 header = b''