mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
calibredb: Fix a regression that broke reading of passwords from stdin
This commit is contained in:
parent
d2cd03d891
commit
9e199774c1
@ -126,7 +126,7 @@ def read_credentials(opts):
|
||||
if pw:
|
||||
if pw == '<stdin>':
|
||||
from calibre.utils.unicode_getpass import getpass
|
||||
pw = getpass.getpass(_('Enter the password: '))
|
||||
pw = getpass(_('Enter the password: '))
|
||||
elif pw.startswith('<f:') and pw.endswith('>'):
|
||||
with lopen(pw[3:-1], 'rb') as f:
|
||||
pw = f.read().decode('utf-8').rstrip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user