speed up satellites.xml-parsing
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 8 Oct 2005 22:40:00 +0000 (22:40 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 8 Oct 2005 22:40:00 +0000 (22:40 +0000)
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"):