minor fix (reading of unicode xml files)

This commit is contained in:
Miroslav Stampar 2012-12-20 09:53:08 +01:00
parent 85fcd27e2d
commit 06d8213ffd

View File

@ -1589,9 +1589,7 @@ def readXmlFile(xmlFile):
"""
checkFile(xmlFile)
with codecs.open(xmlFile, 'r', UNICODE_ENCODING) as f:
retVal = minidom.parse(f).documentElement
retVal = minidom.parse(xmlFile).documentElement
return retVal