changeset 40669:d6a13f6db69c

py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes Differential Revision: https://phab.mercurial-scm.org/D5286
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 19 Nov 2018 21:11:08 +0300
parents feae4d1f5e01
children 1423ff45c322
files hgext/fastannotate/context.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))