corrected missing file renaming of output

This commit is contained in:
Pratheek Shanthraj 2013-01-18 11:39:53 +00:00
parent 9ee8108b6b
commit 096204cd79
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ for file in files:
file['output'].write(output)
file['input'].close()
if file['name'] != 'STDIN':
file['input'].close()
file['output'].close()
os.rename(file['name']+'_tmp',file['name'])