Merge pull request #1544 from colynn/devel
fixed python 2.4 compatibility
This commit is contained in:
commit
d02e26c38f
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue