Skip to content

Commit a44d51e

Browse files
committed
Merge pull request jazzband#177 from cag/python3fix
Fixed SyntaxError syntax raised by TemplateSyntaxError.
2 parents eb9e7e5 + 10c5dbd commit a44d51e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline/templatetags/compressed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def compressed_css(parser, token):
9898
try:
9999
tag_name, name = token.split_contents()
100100
except ValueError:
101-
raise template.TemplateSyntaxError, '%r requires exactly one argument: the name of a group in the PIPELINE_CSS setting' % token.split_contents()[0]
101+
raise template.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE_CSS setting' % token.split_contents()[0])
102102
return CompressedCSSNode(name)
103103
compressed_css = register.tag(compressed_css)
104104

@@ -107,6 +107,6 @@ def compressed_js(parser, token):
107107
try:
108108
tag_name, name = token.split_contents()
109109
except ValueError:
110-
raise template.TemplateSyntaxError, '%r requires exactly one argument: the name of a group in the PIPELINE_JS setting' % token.split_contents()[0]
110+
raise template.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE_JS setting' % token.split_contents()[0])
111111
return CompressedJSNode(name)
112112
compressed_js = register.tag(compressed_js)

0 commit comments

Comments
 (0)