Merge pull request #1544 from colynn/devel

fixed python 2.4 compatibility
This commit is contained in:
Brian Coca 2016-01-22 12:01:49 -05:00
commit d02e26c38f

View file

@ -243,11 +243,16 @@ def main():
nf.write(new_limit)
f.close()
nf.close()
nf.flush()
# Copy tempfile to newfile
module.atomic_move(nf.name, f.name)
try:
nf.close()
except:
pass
res_args = dict(
changed = changed, msg = message
)