mirror of https://gitlab.com/ita1024/waf.git
It was meant to be a try-finally block, to ensure file is closed.
This commit is contained in:
parent
149c122db3
commit
6c74f1051b
|
@ -366,7 +366,7 @@ class rcc(Task.Task):
|
|||
fi = open(self.inputs[0].abspath(), 'r')
|
||||
try:
|
||||
parser.parse(fi)
|
||||
except:
|
||||
finally:
|
||||
fi.close()
|
||||
|
||||
nodes = []
|
||||
|
|
Loading…
Reference in New Issue