changeset 41829:8e364664a999

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 02 Mar 2019 05:23:15 +0530
parents bce2356ece68
children c6a5009ed04a
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()