##// END OF EJS Templates
ui: remove excessive strtolocal() from debuguigetpass...
Yuya Nishihara -
r46653:e614eeb7 stable
parent child Browse files
Show More
@@ -3787,9 +3787,7 b' def debugtemplate(ui, repo, tmpl, **opts'
3787 def debuguigetpass(ui, prompt=b''):
3787 def debuguigetpass(ui, prompt=b''):
3788 """show prompt to type password"""
3788 """show prompt to type password"""
3789 r = ui.getpass(prompt)
3789 r = ui.getpass(prompt)
3790 if r is not None:
3790 if r is None:
3791 r = encoding.strtolocal(r)
3792 else:
3793 r = b"<default response>"
3791 r = b"<default response>"
3794 ui.writenoi18n(b'response: %s\n' % r)
3792 ui.writenoi18n(b'response: %s\n' % r)
3795
3793
General Comments 0
You need to be logged in to leave comments. Login now