[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread R. David Murray
R. David Murray added the comment: See issue 6656. This bug isn't a quite a duplicate of that bug, but I did discover (and fix) the bug this one reports in the process of creating a patch for that one, so I'm closing this one as a duplicate anyway. -- nosy: +r.david.murray resolution

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread Eric Smith
Eric Smith added the comment: There's definitely some weirdness going on with handling mapping keys. I'll look at it. -- assignee: -> eric.smith keywords: +easy nosy: +eric.smith priority: -> normal stage: -> needs patch ___ Python tracker

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread Marcel Tschopp
New submission from Marcel Tschopp : locale.format_string doesn't return same result as a normal "string" % format directive, but raises a TypeError. >>> locale.format_string('%(key)s', {'key': 'Test'}) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.6/l