py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes
authorPulkit Goyal <pulkit@yandex-team.ru>
Mon, 19 Nov 2018 21:11:08 +0300
changeset 40669 d6a13f6db69c
parent 40668 feae4d1f5e01
child 40671 1423ff45c322
py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes Differential Revision: https://phab.mercurial-scm.org/D5286
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))