Rename module to avoid conflisct with stdlib module

This commit is contained in:
Kovid Goyal 2017-08-04 14:46:41 +05:30
parent 56d32f6f9c
commit 0f95dc49a1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ def read_credentials(opts):
pw = opts.password pw = opts.password
if pw: if pw:
if pw == '<stdin>': if pw == '<stdin>':
from calibre.utils.getpass import getpass from calibre.utils.unicode_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:

View File

@ -70,7 +70,7 @@ def manage_users_cli(path=None):
return get_valid(_('Enter the username'), validate) return get_valid(_('Enter the username'), validate)
def get_pass(username): def get_pass(username):
from calibre.utils.getpass import getpass from calibre.utils.unicode_getpass import getpass
while True: while True:
one = getpass( one = getpass(