Mercurial > public > mercurial-scm > hg
comparison hgext/fastannotate/context.py @ 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 | ce4c29705983 |
children | 9fcf8084ada8 |
comparison
equal
deleted
inserted
replaced
40668:feae4d1f5e01 | 40669:d6a13f6db69c |
---|---|
154 'followrename': True, | 154 'followrename': True, |
155 'followmerge': True, | 155 'followmerge': True, |
156 } | 156 } |
157 | 157 |
158 def __init__(self, **opts): | 158 def __init__(self, **opts): |
159 opts = pycompat.byteskwargs(opts) | |
159 for k, v in self.defaults.iteritems(): | 160 for k, v in self.defaults.iteritems(): |
160 setattr(self, k, opts.get(k, v)) | 161 setattr(self, k, opts.get(k, v)) |
161 | 162 |
162 @util.propertycache | 163 @util.propertycache |
163 def shortstr(self): | 164 def shortstr(self): |