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.
--- 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))