From 0caf61b805f1c65558ea3188cbee06cf8e299d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 30 Dec 2012 15:28:48 +0000 Subject: [PATCH] avoid specific case with decimal comparison svn: r20882 --- po/check_po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/check_po b/po/check_po index 3338c96fb..3ae3d108f 100755 --- a/po/check_po +++ b/po/check_po @@ -560,7 +560,7 @@ def analyze_msgs( args, fname, msgs, nr_templates = None, nth = 0 ): translation = (1.0 - (float(not_displayed) / float(nr_templates))) * 100 text = "%-20s%5.2f%%" % ( "Localized at:", translation) - if template_coverage == po_coverage: + if int(template_coverage*1000) == int(po_coverage*1000): print text else: print text + ' (previous gramps.pot)'