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

Annotation 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.1 - (hide annotations) (download)
Tue Oct 20 21:41:47 2009 UTC (15 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: translate-toolkit-1_4_1-2_el5_sme
* 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 RSS 2.0 feed