changeset 52404:e95b0013fba3

mq: stop using the `pycompat.open()` shim
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 04 Dec 2024 21:11:55 -0500
parents 035375d66d77
children 7688ecd56bbd
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Wed Dec 04 21:10:29 2024 -0500
+++ b/hgext/mq.py	Wed Dec 04 21:11:55 2024 -0500
@@ -75,9 +75,6 @@
     nullrev,
     short,
 )
-from mercurial.pycompat import (
-    open,
-)
 from mercurial import (
     cmdutil,
     commands,
@@ -322,7 +319,7 @@
         nodeid = None
         diffstart = 0
 
-        for line in open(pf, b'rb'):
+        for line in open(pf, 'rb'):
             line = line.rstrip()
             if line.startswith(b'diff --git') or (
                 diffstart and line.startswith(b'+++ ')