Commit a4428530 by jctanner

Merge pull request #6240 from fesplugas/devel

get rid of newline chars when reading password file
parents 873ab6cc 0fd5829f
...@@ -105,6 +105,8 @@ def _read_password(filename): ...@@ -105,6 +105,8 @@ def _read_password(filename):
f = open(filename, "rb") f = open(filename, "rb")
data = f.read() data = f.read()
f.close f.close
# get rid of newline chars
data = data.strip()
return data return data
def execute_create(args, options, parser): def execute_create(args, options, parser):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment