Skip to content
Snippets Groups Projects
Commit 21560d0e authored by Charlie Somerville's avatar Charlie Somerville
Browse files

PYTHOOOOOOOOOOON

This was dying when rendered through the HTML formatter because
the HTML formatter calls translate on returned strings. Turns out
the implementation of translate on 'unicode' objects is COMPLETELY
different to the implementation on 'str' objects AND THIS IS ONLY
VAGUELY MENTIONED IN THE DOCUMENTATION
parent 07231a15
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -408,7 +408,7 @@ class SlashLanguageLexer(ExtendedRegexLexer):
def right_angle_bracket(lexer, match, ctx):
if len(ctx.stack) > 1 and ctx.stack[-2] == "string":
ctx.stack.pop()
yield match.start(), Punctuation, "}"
yield match.start(), Punctuation, u"}"
ctx.pos = match.end()
pass
 
Loading
Loading
Loading
Loading
@@ -408,7 +408,7 @@ class SlashLanguageLexer(ExtendedRegexLexer):
def right_angle_bracket(lexer, match, ctx):
if len(ctx.stack) > 1 and ctx.stack[-2] == "string":
ctx.stack.pop()
yield match.start(), Punctuation, "}"
yield match.start(), Punctuation, u"}"
ctx.pos = match.end()
pass
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment