Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
a44d51e0
Commit
a44d51e0
authored
Jan 30, 2013
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #177 from cag/python3fix
Fixed SyntaxError syntax raised by TemplateSyntaxError.
parents
eb9e7e5d
10c5dbda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pipeline/templatetags/compressed.py
+2
-2
No files found.
pipeline/templatetags/compressed.py
View file @
a44d51e0
...
...
@@ -98,7 +98,7 @@ def compressed_css(parser, token):
try
:
tag_name
,
name
=
token
.
split_contents
()
except
ValueError
:
raise
template
.
TemplateSyntaxError
,
'
%
r requires exactly one argument: the name of a group in the PIPELINE_CSS setting'
%
token
.
split_contents
()[
0
]
raise
template
.
TemplateSyntaxError
(
'
%
r requires exactly one argument: the name of a group in the PIPELINE_CSS setting'
%
token
.
split_contents
()[
0
])
return
CompressedCSSNode
(
name
)
compressed_css
=
register
.
tag
(
compressed_css
)
...
...
@@ -107,6 +107,6 @@ def compressed_js(parser, token):
try
:
tag_name
,
name
=
token
.
split_contents
()
except
ValueError
:
raise
template
.
TemplateSyntaxError
,
'
%
r requires exactly one argument: the name of a group in the PIPELINE_JS setting'
%
token
.
split_contents
()[
0
]
raise
template
.
TemplateSyntaxError
(
'
%
r requires exactly one argument: the name of a group in the PIPELINE_JS setting'
%
token
.
split_contents
()[
0
])
return
CompressedJSNode
(
name
)
compressed_js
=
register
.
tag
(
compressed_js
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment