changeset 46112 | d6afa9c149c3 |
parent 46111 | 9e24b3d8e896 |
parent 46079 | e614eeb794f9 |
child 46201 | b986e3342827 |
--- a/mercurial/debugcommands.py Fri Dec 11 15:25:11 2020 +0100 +++ b/mercurial/debugcommands.py Sun Dec 13 18:29:22 2020 -0800 @@ -3850,9 +3850,7 @@ def debuguigetpass(ui, prompt=b''): """show prompt to type password""" r = ui.getpass(prompt) - if r is not None: - r = encoding.strtolocal(r) - else: + if r is None: r = b"<default response>" ui.writenoi18n(b'response: %s\n' % r)