#17802: merge with 3.3.

This commit is contained in:
Ezio Melotti 2013-05-01 16:20:00 +03:00
commit f6ca26fbff
3 changed files with 18 additions and 0 deletions

View file

@ -251,6 +251,7 @@ class HTMLParser(_markupbase.ParserBase):
if self.strict:
self.error("EOF in middle of entity or char ref")
else:
k = match.end()
if k <= i:
k = n
i = self.updatepos(i, i + 1)