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.

pull/8166/head
Scott Brown 11 years ago
parent 616d749ab3
commit 5849bb3dba

@ -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…
Cancel
Save