提交 e2b8f981 编写于 作者: D Daniel P. Berrange

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
上级 e22f2f5c
...@@ -55,7 +55,9 @@ def uniq(items): ...@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册