diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py index f54e3d6196b..08c53b3ff22 100644 --- a/Lib/HTMLParser.py +++ b/Lib/HTMLParser.py @@ -8,6 +8,7 @@ # and CDATA (character data -- only end tags are special). +import markupbase import re import string @@ -21,12 +22,8 @@ entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]') charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]') starttagopen = re.compile('<[a-zA-Z]') -piopen = re.compile(r'<\?') piclose = re.compile('>') endtagopen = re.compile(']*>') -commentopen = re.compile('