Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 46113:d6afa9c149c3
branching: merge with stable
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 13 Dec 2020 18:29:22 -0800 |
parents | 9e24b3d8e896 e614eeb794f9 |
children | b986e3342827 |
line wrap: on
line diff
--- 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)