speed up satellites.xml-parsing
[enigma2.git] / lib / python / Components / NimManager.py
index d806bc375e11be9327c6256215a91f5c8806f690..f91a4ea40ccaef08e1f80f6e60e8ae000201d3a3 100644 (file)
@@ -28,9 +28,8 @@ class NimManager:
        def readSatsfromFile(self):
                self.satellites = { }
                #FIXME: path ok???
-               satfile = file('/etc/tuxbox/satellites.xml', 'r')
-               satdom = xml.dom.minidom.parseString(satfile.read())
-               satfile.close()
+               satdom = xml.dom.minidom.parse('/etc/tuxbox/satellites.xml')
+
 
                for entries in elementsWithTag(satdom.childNodes, "satellites"):
                        for x in elementsWithTag(entries.childNodes, "sat"):