summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2010-03-18 09:14:08 +0100
committerMike Hommey <glandium@debian.org>2010-03-18 09:14:08 +0100
commit040eaa5025293aa79f6854341e00bd3f184c4e7e (patch)
treef5a8bcbcaf7b32524fa46eef5a6112f8b603fc13
parent6fbcf0ee9acd970cce4cb6e4c872857f726c84ff (diff)
downloadlibxml2-040eaa5025293aa79f6854341e00bd3f184c4e7e.tar.gz
Sort python generated stubs so that libxml2.py doesn' differ between python 2.5 and 2.6
-rwxr-xr-xpython/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/generator.py b/python/generator.py
index 9e1fdaa..767c4bb 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -553,7 +553,7 @@ def buildStubs():
wrapper.write("#include <libxml/xmlschemastypes.h>\n")
wrapper.write("#include \"libxml_wrap.h\"\n")
wrapper.write("#include \"libxml2-py.h\"\n\n")
- for function in functions.keys():
+ for function in sorted(functions.keys()):
ret = print_function_wrapper(function, wrapper, export, include)
if ret < 0:
failed = failed + 1
@@ -856,7 +856,7 @@ def buildWrappers():
if tinfo[2] == classe:
ctypes.append(type)
ctypes_processed[type] = ()
- for type in classes_type.keys():
+ for type in sorted(classes_type.keys()):
if ctypes_processed.has_key(type):
continue
tinfo = classes_type[type]