first pickle, then save to avoid killing config file on sigint
[enigma2.git] / lib / python / Components / DreamInfoHandler.py
index c5f82629998b8b6aee907aebdcfffb2600243674..2f2e757cf4e12b22662c7b2ebb1d9788cce612da 100644 (file)
@@ -31,7 +31,7 @@ class InfoHandler(xml.sax.ContentHandler):
        def startElement(self, name, attrs):
                #print name, ":", attrs.items()
                self.elements.append(name)
-               if name in ["hardware", "bcastsystem", "satellite", "tag"]:
+               if name in ("hardware", "bcastsystem", "satellite", "tag"):
                        if not attrs.has_key("type"):
                                        self.printError(str(name) + " tag with no type attribute")
                        if self.elements[-3] == "default":