diff -r 01667c882e63 -r a010554f8551 buildframework/helium/tools/quality/mmp-to-target.ant.xml --- a/buildframework/helium/tools/quality/mmp-to-target.ant.xml Fri Oct 08 21:02:28 2010 +0100 +++ b/buildframework/helium/tools/quality/mmp-to-target.ant.xml Mon Oct 11 11:16:47 2010 +0100 @@ -61,12 +61,13 @@ for filename in ds.getIncludedFiles(): filename = os.path.join(str(ds.getBasedir()), str(filename)) project.log("Analysing %s" % filename, 4) - input = open(filename, 'r') - for line in input.readlines(): + inputfile = open(filename, 'r') + for line in inputfile.readlines(): m = match_target.match(line) # do not match resource files. if m != None and os.path.splitext(m.group(1))[1].lower() != ".rsc": output.write("%s : %s\n" % (os.path.splitdrive(filename)[1], m.group(1))) + inputfile.close() output.close() ]]>