mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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:
parent
e22f2f5c9c
commit
e2b8f981c4
@ -55,7 +55,9 @@ def uniq(items):
|
|||||||
d = {}
|
d = {}
|
||||||
for item in items:
|
for item in items:
|
||||||
d[item]=1
|
d[item]=1
|
||||||
return d.keys()
|
k = d.keys()
|
||||||
|
k.sort()
|
||||||
|
return k
|
||||||
|
|
||||||
class identifier:
|
class identifier:
|
||||||
def __init__(self, name, header=None, module=None, type=None, lineno = 0,
|
def __init__(self, name, header=None, module=None, type=None, lineno = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user