All xml attributes are now added to the etree class in alphabetical order to ensure it writes the same on different versions

This commit is contained in:
Veronica K. B. Olsen
2019-08-11 20:21:06 +02:00
parent b4a89ede9f
commit 6a19807310
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -89,9 +89,9 @@ class NWStatus():
def packEntries(self, xParent):
for n in range(self.theLength):
xSub = etree.SubElement(xParent,"entry",attrib={
"red" : str(self.theColours[n][0]),
"green" : str(self.theColours[n][1]),
"blue" : str(self.theColours[n][2]),
"green" : str(self.theColours[n][1]),
"red" : str(self.theColours[n][0]),
})
xSub.text = self.theLabels[n]
return True