--- translate-toolkit-1.4.1/translate/search/match.py.sourcelencmp 2009-06-22 07:05:42.000000000 -0600 +++ translate-toolkit-1.4.1/translate/search/match.py 2009-10-20 15:40:11.000000000 -0600 @@ -34,6 +34,12 @@ """Returns the length of the source string""" return len(unit.source) +def sourcelencmp(x, y): + """Compares using sourcelen""" + # This is mostly useful for Python 2.3 + xlen = sourcelen(x) + ylen = sourcelen(y) + return cmp(xlen, ylen) class matcher(object): """A class that will do matching and store configuration for the matching process"""