Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 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 | 55df8fa15b09 |
children | 06d3c40fc3e7 |
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')