Changeset 1770

Show
Ignore:
Timestamp:
09/20/08 16:43:41 (18 months ago)
Author:
JensDiemer
Message:

mark strings als unicode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/PyLucid/system/hightlighter.py

    r1634 r1770  
    3535 
    3636HTML = ( 
    37     '<fieldset class="pygments_code">\n' 
     37    u'<fieldset class="pygments_code">\n' 
    3838    '<legend class="pygments_code">%(lexer_name)s</legend>' 
    3939    '%(code_html)s' 
    4040    '</fieldset>\n' 
    4141) 
    42 CSSCLASS = "pygments" 
     42CSSCLASS = u"pygments" 
    4343 
    4444def make_html(sourcecode, source_type): 
     
    4848 
    4949def no_hightlight(code): 
    50     html = '\n<pre><code>%s</code></pre>\n' % escape(code) 
     50    html = u'\n<pre><code>%s</code></pre>\n' % escape(code) 
    5151    return html 
    5252 
     
    7676    except lexers.ClassNotFound, err: 
    7777        info = _("unknown type") 
    78         lexer_name = '<small title="%s">%s</small>' % (err, info) 
     78        lexer_name = u'<small title="%s">%s</small>' % (err, info) 
    7979        html = no_hightlight(sourcecode) 
    8080        return html, lexer_name