Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mat2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jvoisin
mat2
Commits
47f9cb33
Commit
47f9cb33
authored
Jul 13, 2019
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Please mypy
parent
b784a9fc
Pipeline
#25731
passed with stages
in 6 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libmat2/web.py
libmat2/web.py
+2
-2
No files found.
libmat2/web.py
View file @
47f9cb33
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
string
...
...
@@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser):
self
.
tag_required_blocklist
=
required_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
()
self
.
__validation_queue
.
append
(
original_tag
)
...
...
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