mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use the fixed getpass for calibredb as well
This commit is contained in:
parent
9a9703242e
commit
50b9eb613f
@ -124,7 +124,7 @@ def read_credentials(opts):
|
|||||||
pw = opts.password
|
pw = opts.password
|
||||||
if pw:
|
if pw:
|
||||||
if pw == '<stdin>':
|
if pw == '<stdin>':
|
||||||
import getpass
|
from calibre.utils.getpass import getpass
|
||||||
pw = getpass.getpass(_('Enter the password: '))
|
pw = getpass.getpass(_('Enter the password: '))
|
||||||
elif pw.startswith('<f:') and pw.endswith('>'):
|
elif pw.startswith('<f:') and pw.endswith('>'):
|
||||||
with lopen(pw[3:-1], 'rb') as f:
|
with lopen(pw[3:-1], 'rb') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user