diff -r 6ce89165eaa0 -r 54849b65dc5f mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Jun 10 10:53:43 2021 -0700 +++ b/mercurial/cmdutil.py Thu Jun 10 14:25:16 2021 -0700 @@ -328,10 +328,10 @@ return datemaydiffer -def checknotesize(ui, opts): +def check_note_size(opts): """make sure note is of valid format""" - note = opts.get(b'note') + note = opts.get('note') if not note: return