From 9e199774c18cee59ec21693d79b11b861a2dd4b5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jan 2018 18:27:02 +0530 Subject: [PATCH] calibredb: Fix a regression that broke reading of passwords from stdin --- 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 f2339b0847..be7fb79961 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -126,7 +126,7 @@ def read_credentials(opts): if pw: if pw == '': from calibre.utils.unicode_getpass import getpass - pw = getpass.getpass(_('Enter the password: ')) + pw = getpass(_('Enter the password: ')) elif pw.startswith(''): with lopen(pw[3:-1], 'rb') as f: pw = f.read().decode('utf-8').rstrip()