# HG changeset patch # User Rishabh Madan # Date 2017-03-17 13:42:22 # Node ID 3fb2081ef896d2784c6442b7357c0a58aec02de0 # Parent 413b4400346204c2eff58b30b528b8c95f39f176 py3: change explicit conversion of config value from str to pycompat.bytestr diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1810,7 +1810,7 @@ def config(ui, repo, *values, **opts): 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')