/[smecontribs]/rpms/translate-toolkit/contribs8/translate-toolkit-1.4.1-sourcelencmp.patch
ViewVC logotype

Contents of /rpms/translate-toolkit/contribs8/translate-toolkit-1.4.1-sourcelencmp.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Feb 24 18:18:37 2010 UTC (14 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Initial import

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 RSS 2.0 feed