Ticket #12448: django_i18n.diff

File django_i18n.diff, 660 bytes (added by ramusus, 15 years ago)
  • django/django/views/i18n.py

     
    208208    for k, v in pdict.items():
    209209        src.append("catalog['%s'] = [%s];\n" % (javascript_quote(k), ','.join(["''"]*(v+1))))
    210210    for k, v in get_formats().items():
    211         src.append("catalog['%s'] = '%s';\n" % (javascript_quote(k), javascript_quote(unicode(v))))
     211        src.append("catalog['%s'] = '%s';\n" % (javascript_quote(k), javascript_quote(str(v))))
    212212    src.extend(csrc)
    213213    src.append(LibFoot)
    214214    src.append(InterPolate)
Back to Top