Fixing bug where the file handle is not closed properly because the parentheses are left off the call, telling Python to return a method but not call the method.
This commit is contained in:
parent
616d749ab3
commit
5849bb3dba
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ def get_opt(options, k, defval=""):
|
|||
def _read_password(filename):
|
||||
f = open(filename, "rb")
|
||||
data = f.read()
|
||||
f.close
|
||||
f.close()
|
||||
data = data.strip()
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in a new issue