diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-10-08 22:40:00 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-10-08 22:40:00 +0000 |
| commit | a084ecfd463e1db01e877a3b1f0f502886cd4708 (patch) | |
| tree | 2a47b41d97efc70d8e82fb2f6d9261e5275cbeab /lib | |
| parent | 97e9b2008c12ab9158d4fbc256ff3127d4be9235 (diff) | |
| download | enigma2-a084ecfd463e1db01e877a3b1f0f502886cd4708.tar.gz enigma2-a084ecfd463e1db01e877a3b1f0f502886cd4708.zip | |
speed up satellites.xml-parsing
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/NimManager.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index d806bc37..f91a4ea4 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -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"): |
