Commit 0fd5829f by Francesc Esplugas

get rid of newline chars when reading password file

parent 6690c234
...@@ -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