summaryrefslogtreecommitdiff
path: root/babel/messages/checkers.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2008-06-17 22:11:09 +0000
committerArmin Ronacher <armin.ronacher@active-4.com>2008-06-17 22:11:09 +0000
commit5eef268999bf877eeb2c76e76788ce2ab176e46b (patch)
treee45e93bba9e76208ab4ab406a2ae1cb1bcc26399 /babel/messages/checkers.py
parent75020b8a0ff46698d93dee1bcde0103ba4bcd94e (diff)
downloadbabel-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.py2
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):