Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8fcb74ef
Commit
8fcb74ef
authored
5 years ago
by
Awais Qureshi
Browse files
Options
Downloads
Patches
Plain Diff
BOM-594
Python3 fix.
parent
0dcee53c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/xsslint/xsslint/linters.py
+2
-1
2 additions, 1 deletion
scripts/xsslint/xsslint/linters.py
with
2 additions
and
1 deletion
scripts/xsslint/xsslint/linters.py
+
2
−
1
View file @
8fcb74ef
...
...
@@ -1349,7 +1349,8 @@ class MakoTemplateLinter(BaseLinter):
while
True
:
parse_string
=
ParseString
(
scrubbed_lines
,
start_index
,
len
(
scrubbed_lines
))
# check for validly parsed string
if
0
<=
parse_string
.
start_index
<
parse_string
.
end_index
:
if
(
parse_string
.
start_index
is
not
None
and
parse_string
.
end_index
is
not
None
)
\
and
(
0
<=
parse_string
.
start_index
<
parse_string
.
end_index
):
# check if expression is contained in the given string
if
parse_string
.
start_index
<
adjusted_start_index
<
parse_string
.
end_index
:
return
parse_string
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment