=== modified file 'Lib/locale.py' --- Lib/locale.py 2008-04-01 09:16:31 +0000 +++ Lib/locale.py 2008-04-01 11:05:57 +0000 @@ -138,7 +138,7 @@ additional is for format strings which contain one or more '*' modifiers.""" # this is only for one-percent-specifier strings and this should be checked - if percent[0] != '%': + if percent[0] != '%' or percent[-1] not in 'diouxXeEfFgGcrs': raise ValueError("format() must be given exactly one %char " "format specifier") if additional: