py3: pass a str to getpass.getpass()
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 02 Mar 2019 05:23:15 +0530
changeset 41829 8e364664a999
parent 41828 bce2356ece68
child 41830 c6a5009ed04a
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
mercurial/ui.py
--- a/mercurial/ui.py	Sat Mar 02 05:12:45 2019 +0530
+++ b/mercurial/ui.py	Sat Mar 02 05:23:15 2019 +0530
@@ -1553,7 +1553,7 @@
                         raise EOFError
                     return l.rstrip('\n')
                 else:
-                    return getpass.getpass('')
+                    return getpass.getpass(r'')
         except EOFError:
             raise error.ResponseExpected()