Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
47f9cb33
Commit
47f9cb33
authored
5 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Please mypy
parent
b784a9fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/web.py
+2
-2
2 additions, 2 deletions
libmat2/web.py
with
2 additions
and
2 deletions
libmat2/web.py
+
2
−
2
View file @
47f9cb33
from
html
import
parser
,
escape
from
html
import
parser
,
escape
from
typing
import
Dict
,
Any
,
List
,
Tuple
,
Set
from
typing
import
Dict
,
Any
,
List
,
Tuple
,
Set
,
Optional
import
re
import
re
import
string
import
string
...
@@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser):
...
@@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser):
self
.
tag_required_blocklist
=
required_blocklisted_tags
self
.
tag_required_blocklist
=
required_blocklisted_tags
self
.
tag_blocklist
=
blocklisted_tags
self
.
tag_blocklist
=
blocklisted_tags
def
handle_starttag
(
self
,
tag
:
str
,
attrs
:
List
[
Tuple
[
str
,
str
]]):
def
handle_starttag
(
self
,
tag
:
str
,
attrs
:
List
[
Tuple
[
str
,
Optional
[
str
]]
]
):
original_tag
=
self
.
get_starttag_text
()
original_tag
=
self
.
get_starttag_text
()
self
.
__validation_queue
.
append
(
original_tag
)
self
.
__validation_queue
.
append
(
original_tag
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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