Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 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 | aaad36b88298 |
children | 018acb7a3490 |
comparison
equal
deleted
inserted
replaced
41828:bce2356ece68 | 41829:8e364664a999 |
---|---|
1551 l = self._fin.readline() | 1551 l = self._fin.readline() |
1552 if not l: | 1552 if not l: |
1553 raise EOFError | 1553 raise EOFError |
1554 return l.rstrip('\n') | 1554 return l.rstrip('\n') |
1555 else: | 1555 else: |
1556 return getpass.getpass('') | 1556 return getpass.getpass(r'') |
1557 except EOFError: | 1557 except EOFError: |
1558 raise error.ResponseExpected() | 1558 raise error.ResponseExpected() |
1559 | 1559 |
1560 def status(self, *msg, **opts): | 1560 def status(self, *msg, **opts): |
1561 '''write status message to output (if ui.quiet is False) | 1561 '''write status message to output (if ui.quiet is False) |