# HG changeset patch # User Pulkit Goyal # Date 2019-03-01 23:53:15 # Node ID 8e364664a9997e2e08f78f076c3bdb86f7f6863a # Parent bce2356ece685660fb08eb55032529da5d281c50 py3: pass a str to getpass.getpass() Otherwise I see `password: b''` on the prompt. # skip-blame because just prefix Differential Revision: https://phab.mercurial-scm.org/D6041 diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -1553,7 +1553,7 @@ class ui(object): raise EOFError return l.rstrip('\n') else: - return getpass.getpass('') + return getpass.getpass(r'') except EOFError: raise error.ResponseExpected()