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')
|
fi = open(self.inputs[0].abspath(), 'r')
|
||||||
try:
|
try:
|
||||||
parser.parse(fi)
|
parser.parse(fi)
|
||||||
except:
|
finally:
|
||||||
fi.close()
|
fi.close()
|
||||||
|
|
||||||
nodes = []
|
nodes = []
|
||||||
|
|
Loading…
Reference in New Issue