Mercurial > hg
changeset 31477:3fb2081ef896
py3: change explicit conversion of config value from str to pycompat.bytestr
author | Rishabh Madan <rishabhmadan96@gmail.com> |
---|---|
date | Fri, 17 Mar 2017 19:12:22 +0530 |
parents | 413b44003462 |
children | 9335dc6b2a9c |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Mar 13 12:40:14 2017 -0700 +++ b/mercurial/commands.py Fri Mar 17 19:12:22 2017 +0530 @@ -1810,7 +1810,7 @@ matched = False for section, name, value in ui.walkconfig(untrusted=untrusted): source = ui.configsource(section, name, untrusted) - value = str(value) + value = pycompat.bytestr(value) if fm.isplain(): source = source or 'none' value = value.replace('\n', '\\n')