]> granicus.if.org Git - python/commitdiff
Bug #1451341: find fuzzy marks correctly.
authorGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 06:44:33 +0000 (06:44 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 06:44:33 +0000 (06:44 +0000)
Tools/i18n/msgfmt.py

index b4ae3e9437038479563e0a6fbeaaf2c50918285b..64331313cd6da95649018a8b037648650670bc81 100755 (executable)
@@ -127,7 +127,7 @@ def make(filename, outfile):
             section = None
             fuzzy = 0
         # Record a fuzzy mark
-        if l[:2] == '#,' and l.find('fuzzy'):
+        if l[:2] == '#,' and 'fuzzy' in l:
             fuzzy = 1
         # Skip comments
         if l[0] == '#':