mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Rename module to avoid conflisct with stdlib module
This commit is contained in:
parent
56d32f6f9c
commit
0f95dc49a1
@ -124,7 +124,7 @@ def read_credentials(opts):
|
||||
pw = opts.password
|
||||
if pw:
|
||||
if pw == '<stdin>':
|
||||
from calibre.utils.getpass import getpass
|
||||
from calibre.utils.unicode_getpass import getpass
|
||||
pw = getpass.getpass(_('Enter the password: '))
|
||||
elif pw.startswith('<f:') and pw.endswith('>'):
|
||||
with lopen(pw[3:-1], 'rb') as f:
|
||||
|
@ -70,7 +70,7 @@ def manage_users_cli(path=None):
|
||||
return get_valid(_('Enter the username'), validate)
|
||||
|
||||
def get_pass(username):
|
||||
from calibre.utils.getpass import getpass
|
||||
from calibre.utils.unicode_getpass import getpass
|
||||
|
||||
while True:
|
||||
one = getpass(
|
||||
|
Loading…
x
Reference in New Issue
Block a user