diff --git a/lib/core/common.py b/lib/core/common.py index c175fa2fb..f133901e6 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1089,9 +1089,9 @@ def getConsoleWidth(default=80): return width if width else default def parseXmlFile(xmlFile, handler): - file = open(paths.GENERIC_XML) - content = file.read() + xfile = open(xmlFile) + content = xfile.read() stream = StringIO(content) parse(stream, handler) stream.close() - file.close() + xfile.close()