# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 23:21:04 # Node ID 1a242d4d2ac4dd389b17769f9737d3dc6705445e # Parent 98b8836d0e8204f726add05e9bc5eaa8d18055e4 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. diff --git a/hgext/fastannotate/context.py b/hgext/fastannotate/context.py --- a/hgext/fastannotate/context.py +++ b/hgext/fastannotate/context.py @@ -170,13 +170,12 @@ class annotateopts: """ 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))