mercurial/dispatch.py
changeset 31305 dc9842a7017c
parent 31266 8089de5fab89
child 31491 492c64afc54c
equal deleted inserted replaced
31304:dab92f3dbd98 31305:dc9842a7017c
   745             atexit.register(print_time)
   745             atexit.register(print_time)
   746 
   746 
   747         if options['verbose'] or options['debug'] or options['quiet']:
   747         if options['verbose'] or options['debug'] or options['quiet']:
   748             for opt in ('verbose', 'debug', 'quiet'):
   748             for opt in ('verbose', 'debug', 'quiet'):
   749                 val = str(bool(options[opt]))
   749                 val = str(bool(options[opt]))
       
   750                 if pycompat.ispy3:
       
   751                     val = val.encode('ascii')
   750                 for ui_ in uis:
   752                 for ui_ in uis:
   751                     ui_.setconfig('ui', opt, val, '--' + opt)
   753                     ui_.setconfig('ui', opt, val, '--' + opt)
   752 
   754 
   753         if options['traceback']:
   755         if options['traceback']:
   754             for ui_ in uis:
   756             for ui_ in uis: