changeset 362:928e3021c552

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 1b78b747b386
children 86fb56f7d5c8
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