diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2008-06-17 22:11:09 +0000 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2008-06-17 22:11:09 +0000 |
commit | 5eef268999bf877eeb2c76e76788ce2ab176e46b (patch) | |
tree | e45e93bba9e76208ab4ab406a2ae1cb1bcc26399 /babel/messages/checkers.py | |
parent | 75020b8a0ff46698d93dee1bcde0103ba4bcd94e (diff) | |
download | babel-5eef268999bf877eeb2c76e76788ce2ab176e46b.tar.gz |
Convert format strings to str for nicer error messages (no u prefix) in the python_format checker.
Diffstat (limited to 'babel/messages/checkers.py')
-rw-r--r-- | babel/messages/checkers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py index 0f02fdc..ba5c30d 100644 --- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -101,7 +101,7 @@ def _validate_format(format, alternative): name, format, typechar = match.groups() if typechar == '%' and name is not None: continue - result.append((name, typechar)) + result.append((name, str(typechar))) return result def _compatible(a, b): |