mercurial/grep.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
child 49284 d44e3c45f0e4
--- a/mercurial/grep.py	Mon Feb 21 13:03:43 2022 -0700
+++ b/mercurial/grep.py	Mon Feb 21 13:08:28 2022 -0700
@@ -35,7 +35,7 @@
         yield linenum, mstart - lstart, mend - lstart, body[lstart:lend]
 
 
-class linestate(object):
+class linestate:
     def __init__(self, line, linenum, colstart, colend):
         self.line = line
         self.linenum = linenum
@@ -79,7 +79,7 @@
                 yield (b'+', b[i])
 
 
-class grepsearcher(object):
+class grepsearcher:
     """Search files and revisions for lines matching the given pattern
 
     Options: