changeset 360:6cc92793c047 trunk

Convert format strings to str for nicer error messages (no u prefix) in the python_format checker.
author aronacher
date Tue, 17 Jun 2008 22:11:09 +0000
parents 5b587612cb45
children 8dd1234e8eab
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
@@ -101,7 +101,7 @@
             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):
Copyright (C) 2012-2017 Edgewall Software