diff hgext/fastannotate/context.py @ 50917:1a242d4d2ac4

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 01:21:04 +0200
parents e586a7eb380a
children d97227f42558
line wrap: on
line diff
--- 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))