# HG changeset patch # User Yuya Nishihara # Date 1517026306 -32400 # Node ID a2b3b5c5a25ae194346bd9c18b194d564683e11e # Parent 4b1c04082cdc6fa5e61a5dddf95a14768f506e05 py3: replace "if ispy3" by pycompat.bytestr() diff -r 4b1c04082cdc -r a2b3b5c5a25a mercurial/dispatch.py --- 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)