mercurial/debugcommands.py
branchstable
changeset 46079 e614eeb794f9
parent 46024 07b0a687c01a
child 46112 d6afa9c149c3
--- a/mercurial/debugcommands.py	Thu Dec 03 13:36:24 2020 -0500
+++ b/mercurial/debugcommands.py	Thu Dec 03 18:42:23 2020 +0900
@@ -3787,9 +3787,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)