fastannotate: use sysstr to deal with some attributes
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 31 Aug 2023 01:21:04 +0200
changeset 50917 1a242d4d2ac4
parent 50916 98b8836d0e82
child 50918 d97227f42558
fastannotate: use sysstr to deal with some attributes We are now Python3 only and attribute are always unicode string. So no needs to managed them using bytes.
hgext/fastannotate/context.py
--- a/hgext/fastannotate/context.py	Fri Sep 01 12:09:54 2023 +0200
+++ b/hgext/fastannotate/context.py	Thu Aug 31 01:21:04 2023 +0200
@@ -170,13 +170,12 @@
     """
 
     defaults = {
-        b'diffopts': None,
-        b'followrename': True,
-        b'followmerge': True,
+        'diffopts': None,
+        'followrename': True,
+        'followmerge': True,
     }
 
     def __init__(self, **opts):
-        opts = pycompat.byteskwargs(opts)
         for k, v in self.defaults.items():
             setattr(self, k, opts.get(k, v))