Fix ordering of <exports> in API description file

* docs/apibuild.py: Make uniq() function sort keys before returning
  them to ensure consitent ordering of <exports> in XML file
This commit is contained in:
Daniel P. Berrange
2009-10-06 11:12:53 +01:00
parent e22f2f5c9c
commit e2b8f981c4
+3 -1
View File
@@ -55,7 +55,9 @@ def uniq(items):
d = {}
for item in items:
d[item]=1
return d.keys()
k = d.keys()
k.sort()
return k
class identifier:
def __init__(self, name, header=None, module=None, type=None, lineno = 0,