aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2010-10-15 18:39:50 +0200
committerDaniel Veillard <veillard@redhat.com>2010-10-15 18:39:50 +0200
commit10455bb48fadedc76633e445db497a49e94fb114 (patch)
tree16ba9215df130f20b30c42c201d4f19d974a6648 /python
parent2f3523f61f1c7a2a0521c2f6c0db6c80e1cc4111 (diff)
downloadandroid_external_libxml2-10455bb48fadedc76633e445db497a49e94fb114.tar.gz
android_external_libxml2-10455bb48fadedc76633e445db497a49e94fb114.tar.bz2
android_external_libxml2-10455bb48fadedc76633e445db497a49e94fb114.zip
Sort python generated stubs
to avoid shuffling each time python changes or on different architectures
Diffstat (limited to 'python')
-rwxr-xr-xpython/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/generator.py b/python/generator.py
index 9e1fdaa2..767c4bb1 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]