Parent Directory | Revision Log | Revision Graph
* Tue Oct 20 2009 Shad L. Lords <slords@mail.com> - 1.4.1-2 - Update to 1.4.1 final - Add sourcelencmp routine back in so updatetm still works
1 | slords | 1.1 | --- translate-toolkit-1.4.1/translate/search/match.py.sourcelencmp 2009-06-22 07:05:42.000000000 -0600 |
2 | +++ translate-toolkit-1.4.1/translate/search/match.py 2009-10-20 15:40:11.000000000 -0600 | ||
3 | @@ -34,6 +34,12 @@ | ||
4 | """Returns the length of the source string""" | ||
5 | return len(unit.source) | ||
6 | |||
7 | +def sourcelencmp(x, y): | ||
8 | + """Compares using sourcelen""" | ||
9 | + # This is mostly useful for Python 2.3 | ||
10 | + xlen = sourcelen(x) | ||
11 | + ylen = sourcelen(y) | ||
12 | + return cmp(xlen, ylen) | ||
13 | |||
14 | class matcher(object): | ||
15 | """A class that will do matching and store configuration for the matching process""" |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |