Message100709
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 "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/locale.py", line 225, in format_string
val[key] = format(perc.group(), val[key], grouping)
File "/usr/local/lib/python2.6/locale.py", line 182, in format
formatted = percent % value
TypeError: format requires a mapping |
|
Date |
User |
Action |
Args |
2010-03-09 10:04:54 | mtschopp | set | recipients:
+ mtschopp |
2010-03-09 10:04:54 | mtschopp | set | messageid: <1268129094.64.0.519298864609.issue8096@psf.upfronthosting.co.za> |
2010-03-09 10:04:53 | mtschopp | link | issue8096 messages |
2010-03-09 10:04:53 | mtschopp | create | |
|