]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fixed logic error in the python format checker.
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 18 Jun 2008 10:42:07 +0000 (10:42 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 18 Jun 2008 10:42:07 +0000 (10:42 +0000)
babel/messages/checkers.py

index ba5c30de86c1f13952384134e2c83a048f5019f3..d1f096d9f11afc0f5668076a42f3e8e970fdc79e 100644 (file)
@@ -99,7 +99,7 @@ def _validate_format(format, alternative):
         result = []
         for match in PYTHON_FORMAT.finditer(string):
             name, format, typechar = match.groups()
-            if typechar == '%' and name is not None:
+            if typechar == '%' and name is None:
                 continue
             result.append((name, str(typechar)))
         return result