summaryrefslogtreecommitdiffstats
path: root/Lib/html
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-05-01 13:20:00 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-05-01 13:20:00 (GMT)
commitf6ca26fbffb689190da9dbe66df09c7d7e118616 (patch)
treecad09a0c76c4ad8547c01d2a7b170f278423dafa /Lib/html
parent8a42d601888e9f71e2c1fcfe93593c509f431c15 (diff)
parent8e596a765cf323cbd2ba31b15f2939f903d87913 (diff)
downloadcpython-f6ca26fbffb689190da9dbe66df09c7d7e118616.zip
cpython-f6ca26fbffb689190da9dbe66df09c7d7e118616.tar.gz
cpython-f6ca26fbffb689190da9dbe66df09c7d7e118616.tar.bz2
#17802: merge with 3.3.
Diffstat (limited to 'Lib/html')
-rw-r--r--Lib/html/parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py
index 485f6fa..18f3115 100644
--- a/Lib/html/parser.py
+++ b/Lib/html/parser.py
@@ -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)