[cgkit-commits] SF.net SVN: cgkit: [149] cgkit/trunk
Brought to you by:
mbaas
From: <mb...@us...> - 2006-10-24 16:33:30
|
Revision: 149 http://svn.sourceforge.net/cgkit/?rev=149&view=rev Author: mbaas Date: 2006-10-24 09:33:20 -0700 (Tue, 24 Oct 2006) Log Message: ----------- Pass the compare function as positional argument instead of keyword argument (the latter is only support since Python 2.4) Modified Paths: -------------- cgkit/trunk/cgkit/simplecpp.py cgkit/trunk/changelog.txt Modified: cgkit/trunk/cgkit/simplecpp.py =================================================================== --- cgkit/trunk/cgkit/simplecpp.py 2006-10-24 15:07:34 UTC (rev 148) +++ cgkit/trunk/cgkit/simplecpp.py 2006-10-24 16:33:20 UTC (rev 149) @@ -211,7 +211,7 @@ value = " ".join(a[1:]) self.defined[name] = value self.substitution_list.append((name, value)) - self.substitution_list.sort(cmp=lambda a,b: cmp(len(b[0]), len(a[0]))) + self.substitution_list.sort(lambda a,b: cmp(len(b[0]), len(a[0]))) def onUndef(self, directive, arg): """Handle #undef directives. Modified: cgkit/trunk/changelog.txt =================================================================== --- cgkit/trunk/changelog.txt 2006-10-24 15:07:34 UTC (rev 148) +++ cgkit/trunk/changelog.txt 2006-10-24 16:33:20 UTC (rev 149) @@ -1,6 +1,14 @@ Changelog ========= +Changes from cgkit-2.0.0alpha7 to cgkit-2.0.0alpha8: + +Bug fixes/enhancements: + +- simplecpp: Don't use keyword arguments to pass the compare function to + sort(). This wasn't supported before Python 2.4. + +---------------------------------------------------------------------- Changes from cgkit-2.0.0alpha6 to cgkit-2.0.0alpha7: New features: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |