From 5d16fdcae021e1a18ded80022add64d9a915ee35 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 3 Jun 2014 23:10:25 -0400 Subject: [PATCH] Fix reduction. --- bitshift/codelet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitshift/codelet.py b/bitshift/codelet.py index 8fbdcfe..8bc3908 100644 --- a/bitshift/codelet.py +++ b/bitshift/codelet.py @@ -83,7 +83,7 @@ class Codelet(object): """ lang = LANGS[self.language] lines = reduce(concat, [[loc[0] for loc in sym[1] + sym[2]] for sym in - reduce(concat, self.symbols.values())]) + reduce(concat, self.symbols.values(), [])], []) formatter = HtmlFormatter(linenos=True, hl_lines=lines) code = highlight(self.code, get_lexer_by_name(lang.lower()), formatter)