Skip to content

Commit

Permalink
fix for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
joke2k committed Jun 23, 2014
1 parent f236dde commit d07370f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idioticon/templatetags/idioticon.py
Expand Up @@ -56,7 +56,7 @@ def do_load_terms(parser, token):
except ValueError:
raise TemplateSyntaxError("'load_terms' requires '*terms as *variables' (got %r)" % args)

names, terms = args[as_index+1:], map(lambda t: t.strip('\'').strip('"'), args[1:as_index])
names, terms = args[as_index+1:], list(map(lambda t: t.strip('\'').strip('"'), args[1:as_index]))

if len(names) != len(terms):
raise TemplateSyntaxError("'load_terms' requires '*terms as *variables' (got %r)" % args)
Expand Down

0 comments on commit d07370f

Please sign in to comment.