# HG changeset patch # User Pierre-Yves David # Date 1693437664 -7200 # 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 -r 98b8836d0e82 -r 1a242d4d2ac4 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))