From 433987c7e2c5a6a750a12ae692071fb7ce0c1ffb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 May 2017 00:14:04 +0530 Subject: [PATCH] ... --- 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 ee98b6e944..6d2af6b403 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -133,7 +133,7 @@ def read_credetials(opts): pw = getpass.getpass(_('Enter the password: ')) elif pw.startswith(''): with lopen(pw[3:-1], 'rb') as f: - pw = f.read().decode('utf-8') + pw = f.read().decode('utf-8').rstrip() return username, pw