We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e30143 commit fe86913Copy full SHA for fe86913
test/normalize.py
@@ -18,7 +18,7 @@ class HTMLParseError(Exception):
18
# Normalization code, adapted from
19
# https://github.com/karlcow/markdown-testsuite/
20
significant_attrs = ["alt", "href", "src", "title"]
21
-whitespace_re = re.compile('\s+')
+whitespace_re = re.compile(r"\s+")
22
class MyHTMLParser(HTMLParser):
23
def __init__(self):
24
HTMLParser.__init__(self)
@@ -176,7 +176,7 @@ def normalize_html(html):
176
'\u2200&><"'
177
178
"""
179
- html_chunk_re = re.compile("(\<!\[CDATA\[.*?\]\]\>|\<[^>]*\>|[^<]+)")
+ html_chunk_re = re.compile(r"(\<!\[CDATA\[.*?\]\]\>|\<[^>]*\>|[^<]+)")
180
try:
181
parser = MyHTMLParser()
182
# We work around HTMLParser's limitations parsing CDATA
0 commit comments