diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-28 23:37:05 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-28 23:37:05 (GMT) |
commit | 00c348328bacfa137441f9a28413e7782534e1c6 (patch) | |
tree | db43cd8714480b2ca11f5d84fe29bd357430a6bc /Mac/scripts | |
parent | 9ddac3e166f0bc5b9226067c5dfc9f462318ce67 (diff) | |
download | cpython-00c348328bacfa137441f9a28413e7782534e1c6.zip cpython-00c348328bacfa137441f9a28413e7782534e1c6.tar.gz cpython-00c348328bacfa137441f9a28413e7782534e1c6.tar.bz2 |
Sigh: didn't catch all lists that needed to be sorted.
Diffstat (limited to 'Mac/scripts')
-rw-r--r-- | Mac/scripts/gensuitemodule.py | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py index 25f31ef..4eca8af 100644 --- a/Mac/scripts/gensuitemodule.py +++ b/Mac/scripts/gensuitemodule.py @@ -127,6 +127,7 @@ def processfile_fromresource(fullname, output=None, basepkgname=None, def processfile(fullname, output=None, basepkgname=None, edit_modnames=None, creatorsignature=None): """Ask an application for its terminology and process that""" + print "\nASKING FOR aete DICTIONARY IN", `fullname` try: aedescobj, launched = OSATerminology.GetAppTerminology(fullname) except MacOS.Error, arg: @@ -856,8 +857,10 @@ class ObjectCompiler: self.fp.write('\t"""%s - %s """\n' % (ascii(name), ascii(desc))) self.fp.write('\twant = %s\n' % `code`) self.namemappers[0].addnamecode('class', pname, code) + properties.sort() for prop in properties: self.compileproperty(prop) + elements.sort() for elem in elements: self.compileelement(elem) @@ -925,6 +928,9 @@ class ObjectCompiler: self.fp.write("# XXXX %s element %s not found!!\n"%(cname, `ecode`)) else: elist.append((name, ename)) + + plist.sort() + elist.sort() if self.fp: self.fp.write("%s._privpropdict = {\n"%cname) @@ -974,20 +980,32 @@ class ObjectCompiler: if not self.fp: return self.fp.write("\n#\n# Indices of types declared in this module\n#\n") + self.fp.write("_classdeclarations = {\n") - for k, v in self.namemappers[0].getall('class'): + classlist = self.namemappers[0].getall('class') + classlist.sort() + for k, v in classlist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") + self.fp.write("\n_propdeclarations = {\n") - for k, v in self.namemappers[0].getall('property'): + proplist = self.namemappers[0].getall('property') + proplist.sort() + for k, v in proplist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") + self.fp.write("\n_compdeclarations = {\n") - for k, v in self.namemappers[0].getall('comparison'): + complist = self.namemappers[0].getall('comparison') + complist.sort() + for k, v in complist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") + self.fp.write("\n_enumdeclarations = {\n") - for k, v in self.namemappers[0].getall('enum'): + enumlist = self.namemappers[0].getall('enum') + enumlist.sort() + for k, v in enumlist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") |