fixing password encoding issue
Signed-off-by: Romain Bignon <romain@budget-insight.com>
This commit is contained in:
parent
63e050602a
commit
56310adcad
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ class ConsoleApplication(BaseApplication):
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
line = getpass.getpass(str(question))
|
line = getpass.getpass(str(question))
|
||||||
else:
|
else:
|
||||||
line = getpass.getpass(question)
|
line = getpass.getpass(question.encode(sys.stdout.encoding or locale.getpreferredencoding()))
|
||||||
else:
|
else:
|
||||||
self.stdout.write(question.encode(sys.stdout.encoding or locale.getpreferredencoding()))
|
self.stdout.write(question.encode(sys.stdout.encoding or locale.getpreferredencoding()))
|
||||||
self.stdout.flush()
|
self.stdout.flush()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue