Mercurial > babel > old > mirror
changeset 363:86fb56f7d5c8
Fixed logic error in the python format checker.
author | aronacher |
---|---|
date | Wed, 18 Jun 2008 10:42:07 +0000 |
parents | 928e3021c552 |
children | 8ad7a924f1ca |
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