mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#17802: merge with 3.3.
This commit is contained in:
commit
f6ca26fbff
3 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue