Remove line breaks from password file
issue6657 review41461002
This commit is contained in:
1 parent
79fb0bcb7d
commit
7de2022a2d
1 file changed
+1
-1
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user