This commit is contained in:
Kovid Goyal 2017-05-02 00:14:04 +05:30
parent 746a496c70
commit 433987c7e2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -133,7 +133,7 @@ def read_credetials(opts):
pw = getpass.getpass(_('Enter the password: '))
elif pw.startswith('<f:') and pw.endswith('>'):
with lopen(pw[3:-1], 'rb') as f:
pw = f.read().decode('utf-8')
pw = f.read().decode('utf-8').rstrip()
return username, pw