mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fix bold of 'getpass' question. Closes GH-426.
This commit is contained in:
parent
06aca4bda8
commit
d809db2cc6
@ -133,14 +133,15 @@ def getpass(prompt=None, secondPrompt=None):
|
||||
prompt += ' '
|
||||
while True:
|
||||
if useBold:
|
||||
prompt += ansi.RESET
|
||||
sys.stdout.write(ansi.BOLD)
|
||||
prompt = ansi.BOLD + prompt + ansi.RESET
|
||||
secondPrompt = ansi.BOLD + secondPrompt + ansi.RESET
|
||||
password = getPass(prompt)
|
||||
secondPassword = getPass(secondPrompt)
|
||||
if password != secondPassword:
|
||||
output(_('Passwords don\'t match.'))
|
||||
else:
|
||||
break
|
||||
print
|
||||
return password
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user