Mercurial > babel > mirror
changeset 361:8dd1234e8eab trunk
Fixed logic error in the python format checker.
author | aronacher |
---|---|
date | Wed, 18 Jun 2008 10:42:07 +0000 |
parents | 6cc92793c047 |
children | 2c0a49081e4b |
files | babel/messages/checkers.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -99,7 +99,7 @@ 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