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 d806bc3..f91a4ea 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"):