Mercurial > hg-stable
changeset 32208:0fd15522a848
py3: use pycompat.byteskwargs to converts kwargs to bytes
baseformatter._item must contain both keys and values in bytes. So to make
sure that, we convert the opts back to bytes.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 04 May 2017 01:12:14 +0530 |
parents | 89153b0d4881 |
children | 906da89821ce |
files | mercurial/formatter.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/formatter.py Thu May 04 00:44:53 2017 +0530 +++ b/mercurial/formatter.py Thu May 04 01:12:14 2017 +0530 @@ -114,6 +114,7 @@ from . import ( error, + pycompat, templatefilters, templatekw, templater, @@ -178,6 +179,7 @@ pass def data(self, **data): '''insert data into item that's not shown in default output''' + data = pycompat.byteskwargs(data) self._item.update(data) def write(self, fields, deftext, *fielddata, **opts): '''do default text output while assigning data to item'''