comparison 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
comparison
equal deleted inserted replaced
31476:413b44003462 31477:3fb2081ef896
1808 if len(items) > 1 or items and sections: 1808 if len(items) > 1 or items and sections:
1809 raise error.Abort(_('only one config item permitted')) 1809 raise error.Abort(_('only one config item permitted'))
1810 matched = False 1810 matched = False
1811 for section, name, value in ui.walkconfig(untrusted=untrusted): 1811 for section, name, value in ui.walkconfig(untrusted=untrusted):
1812 source = ui.configsource(section, name, untrusted) 1812 source = ui.configsource(section, name, untrusted)
1813 value = str(value) 1813 value = pycompat.bytestr(value)
1814 if fm.isplain(): 1814 if fm.isplain():
1815 source = source or 'none' 1815 source = source or 'none'
1816 value = value.replace('\n', '\\n') 1816 value = value.replace('\n', '\\n')
1817 entryname = section + '.' + name 1817 entryname = section + '.' + name
1818 if values: 1818 if values: