1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

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-02 12:17:18 +01:00
parent e22f2f5c9c
commit e2b8f981c4

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,