Skip to content

Commit

Permalink
Fixing bug where the file handle is not closed properly because the p…
Browse files Browse the repository at this point in the history
…arentheses are left off the call, telling Python to return a method but not call the method.
  • Loading branch information
scottbrown committed Jul 16, 2014
1 parent 616d749 commit 5849bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ansible-vault
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5849bb3

Please sign in to comment.