Remove line breaks from password file

issue6657
review41461002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-07-25 09:35:50 +02:00
1 parent 79fb0bcb7d
commit 7de2022a2d
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@ def run(options):
if passpath:
try:
with open(passpath) as passfile:
password = passfile.readline()[:-1]
password, = passfile.read().splitlines()
except Exception, err:
sys.stderr.write('Can not read password '
'from "%s": "%s"\n' % (passpath, err))