]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Convert format strings to str for nicer error messages (no u prefix) in the python_fo...
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 17 Jun 2008 22:11:09 +0000 (22:11 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 17 Jun 2008 22:11:09 +0000 (22:11 +0000)
babel/messages/checkers.py

index 0f02fdc5a0065cbd08d34ffdb84ab4915118bcdc..ba5c30de86c1f13952384134e2c83a048f5019f3 100644 (file)
@@ -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):