From 50b9eb613f21aed429e76bf693ac129219b6f792 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Aug 2017 13:27:09 +0530 Subject: [PATCH] Use the fixed getpass for calibredb as well --- src/calibre/db/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/cli/main.py b/src/calibre/db/cli/main.py index 66e36450dd..04ad63b9f9 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -124,7 +124,7 @@ def read_credentials(opts): pw = opts.password if pw: if pw == '': - import getpass + from calibre.utils.getpass import getpass pw = getpass.getpass(_('Enter the password: ')) elif pw.startswith(''): with lopen(pw[3:-1], 'rb') as f: