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:
Scott Brown 2014-07-16 08:48:41 -07:00
parent 616d749ab3
commit 5849bb3dba

View file

@ -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