[Python-checkins] r43684 - python/trunk/Tools/i18n/msgfmt.py

georg.brandl python-checkins at python.org
Thu Apr 6 08:44:34 CEST 2006


Author: georg.brandl
Date: Thu Apr  6 08:44:33 2006
New Revision: 43684

Modified:
   python/trunk/Tools/i18n/msgfmt.py
Log:
Bug #1451341: find fuzzy marks correctly.


Modified: python/trunk/Tools/i18n/msgfmt.py
==============================================================================
--- python/trunk/Tools/i18n/msgfmt.py	(original)
+++ python/trunk/Tools/i18n/msgfmt.py	Thu Apr  6 08:44:33 2006
@@ -127,7 +127,7 @@
             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] == '#':


More information about the Python-checkins mailing list