sort config file
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 11 Oct 2005 01:33:17 +0000 (01:33 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 11 Oct 2005 01:33:17 +0000 (01:33 +0000)
lib/python/Components/config.py

index 3598fd6..4cdd359 100644 (file)
@@ -37,7 +37,9 @@ class configFile:
                        
                fileHandle = open("config", "w")
                
-               for x in self.configElements:
+               keys = self.configElements.keys()
+               keys.sort()
+               for x in keys:
                        wstr = x + "=" + self.configElements[x]
                        
                        if wstr[len(wstr) - 1] != '\n':