Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2840f20

Browse files
committed
Minor bug fix
1 parent 915d344 commit 2840f20

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,9 @@ def getConsoleWidth(default=80):
10891089
return width if width else default
10901090

10911091
def parseXmlFile(xmlFile, handler):
1092-
file = open(paths.GENERIC_XML)
1093-
content = file.read()
1092+
xfile = open(xmlFile)
1093+
content = xfile.read()
10941094
stream = StringIO(content)
10951095
parse(stream, handler)
10961096
stream.close()
1097-
file.close()
1097+
xfile.close()

0 commit comments

Comments
 (0)