From: Armin Ronacher Date: Wed, 18 Jun 2008 10:42:07 +0000 (+0000) Subject: Fixed logic error in the python format checker. X-Git-Tag: 1.0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9efb7e3624af2bb64b663d6c9908c597cf09a23;p=thirdparty%2Fbabel.git Fixed logic error in the python format checker. --- diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py index ba5c30de..d1f096d9 100644 --- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -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