]> granicus.if.org Git - python/commitdiff
Reverting previous checkin. This breaks too much of HTMLParser to be applied
authorGeorg Brandl <georg@python.org>
Thu, 1 Sep 2005 06:25:34 +0000 (06:25 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 1 Sep 2005 06:25:34 +0000 (06:25 +0000)
without thought. Anyway, such malformed HTML is better handled by something
like BeautifulSoup.

Lib/HTMLParser.py

index f26d09c49e9e08704ff0f5fd4d804a9cad3daeb9..8380466e337500cc5714abd588170da81d4f23f4 100644 (file)
@@ -36,7 +36,7 @@ locatestarttagend = re.compile(r"""
         (?:'[^']*'                   # LITA-enclosed value
           |\"[^\"]*\"                # LIT-enclosed value
           |[^'\">\s]+                # bare value
-         )?
+         )
        )?
      )
    )*