Mercurial > hg
changeset 35898:a2b3b5c5a25a
py3: replace "if ispy3" by pycompat.bytestr()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 27 Jan 2018 13:11:46 +0900 |
parents | 4b1c04082cdc |
children | d5457d94e1c9 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Sat Jan 27 13:09:49 2018 +0900 +++ b/mercurial/dispatch.py Sat Jan 27 13:11:46 2018 +0900 @@ -821,9 +821,7 @@ if options['verbose'] or options['debug'] or options['quiet']: for opt in ('verbose', 'debug', 'quiet'): - val = str(bool(options[opt])) - if pycompat.ispy3: - val = val.encode('ascii') + val = pycompat.bytestr(bool(options[opt])) for ui_ in uis: ui_.setconfig('ui', opt, val, '--' + opt)