# HG changeset patch # User David Champion # Date 1596145636 25200 # Thu Jul 30 14:47:16 2020 -0700 # Node ID ae33e6b815cea3d0961668f03e56621732dad972 # Parent 08208fbdfd02b4f0f05fbd6926ed66bacd404412 py3/unicode: adapt cmdtable entries to bytestrings diff --git a/prompt.py b/prompt.py --- a/prompt.py +++ b/prompt.py @@ -69,9 +69,12 @@ else: return None -@command('prompt', - [('', 'angle-brackets', None, 'use angle brackets (<>) for keywords')], - 'hg prompt STRING') +def b(s): + return bytes(s, 'utf-8') + +@command(b('prompt'), + [(b(''), b('angle-brackets'), None, b('use angle brackets (<>) for keywords'))], + b('hg prompt STRING')) def prompt(ui, repo, fs='', **opts): '''get repository information for use in a shell prompt