Ticket #7075: r7450.diff

File r7450.diff, 511 bytes (added by Wang Chun <wangchun@…>, 17 years ago)
  • contrib/admin/views/main.py

     
    5757    quoting is slightly different so that it doesn't get automatically
    5858    unquoted by the Web browser.
    5959    """
    60     if type(s) != type(''):
     60    if type(s) == type(''):
     61        s = unicode(s)
     62    if type(s) != type(u''):
    6163        return s
    6264    res = list(s)
    6365    for i in range(len(res)):
Back to Top