summaryrefslogtreecommitdiffstats
path: root/Lib/HTMLParser.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-09-01 06:25:34 (GMT)
committerGeorg Brandl <georg@python.org>2005-09-01 06:25:34 (GMT)
commitcd3c26a7171af2795df477598d045e46adf5d73b (patch)
tree6f86a1d7c26b1ecc685409b9501ba9808238cf0d /Lib/HTMLParser.py
parent4ce69a5b06d230d513139ad0797bcc1b471f910c (diff)
downloadcpython-cd3c26a7171af2795df477598d045e46adf5d73b.zip
cpython-cd3c26a7171af2795df477598d045e46adf5d73b.tar.gz
cpython-cd3c26a7171af2795df477598d045e46adf5d73b.tar.bz2
Reverting previous checkin. This breaks too much of HTMLParser to be applied
without thought. Anyway, such malformed HTML is better handled by something like BeautifulSoup.
Diffstat (limited to 'Lib/HTMLParser.py')
-rw-r--r--Lib/HTMLParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py
index f26d09c..8380466 100644
--- a/Lib/HTMLParser.py
+++ b/Lib/HTMLParser.py
@@ -36,7 +36,7 @@ locatestarttagend = re.compile(r"""
(?:'[^']*' # LITA-enclosed value
|\"[^\"]*\" # LIT-enclosed value
|[^'\">\s]+ # bare value
- )?
+ )
)?
)
)*