# HG changeset patch # User aronacher # Date 1213740669 0 # Node ID 1c9b26fce1f28aa1bf16bfc25cbf76d5f85b7a6e # Parent ad98cc9a7eec94933b709520488a6066f95a2566 Convert format strings to str for nicer error messages (no u prefix) in the python_format checker. diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py --- 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):