Fix of issue 3480.

svn: r13995
This commit is contained in:
Peter Landgren 2010-01-08 15:56:39 +00:00
parent 418b89007e
commit f579f495cb

View File

@ -352,7 +352,7 @@ class NameDisplay(object):
d_keys.sort(_make_cmp) # reverse sort by ikeyword d_keys.sort(_make_cmp) # reverse sort by ikeyword
for (code, ikeyword) in d_keys: for (code, ikeyword) in d_keys:
exp, keyword, ikeyword = d[code] exp, keyword, ikeyword = d[code]
ikeyword = unicode(ikeyword, "utf8") #ikeyword = unicode(ikeyword, "utf8")
format_str = format_str.replace(ikeyword, "%"+ code) format_str = format_str.replace(ikeyword, "%"+ code)
format_str = format_str.replace(ikeyword.title(), "%"+ code) format_str = format_str.replace(ikeyword.title(), "%"+ code)
format_str = format_str.replace(ikeyword.upper(), "%"+ code.upper()) format_str = format_str.replace(ikeyword.upper(), "%"+ code.upper())