# HG changeset patch # User Pulkit Goyal # Date 1542651068 -10800 # Node ID d6a13f6db69cf3c7bf5e9d6a918f5c7dc42f8171 # Parent feae4d1f5e01d41d83e1a227ab78bed9c2d460e7 py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes Differential Revision: https://phab.mercurial-scm.org/D5286 diff -r feae4d1f5e01 -r d6a13f6db69c hgext/fastannotate/context.py --- a/hgext/fastannotate/context.py Mon Nov 19 20:30:07 2018 +0300 +++ b/hgext/fastannotate/context.py Mon Nov 19 21:11:08 2018 +0300 @@ -156,6 +156,7 @@ } def __init__(self, **opts): + opts = pycompat.byteskwargs(opts) for k, v in self.defaults.iteritems(): setattr(self, k, opts.get(k, v))