mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Change test_htmlparser to reflect the HTMLParser -> html.parser
rename in r63439. Also fix one occurrence of unichr() in html.parser.
This commit is contained in:
parent
96ad65da2f
commit
f64dcf3ce0
2 changed files with 6 additions and 6 deletions
|
@ -378,7 +378,7 @@ class HTMLParser(_markupbase.ParserBase):
|
|||
if HTMLParser.entitydefs is None:
|
||||
entitydefs = HTMLParser.entitydefs = {'apos':"'"}
|
||||
for k, v in html.entities.name2codepoint.items():
|
||||
entitydefs[k] = unichr(v)
|
||||
entitydefs[k] = chr(v)
|
||||
try:
|
||||
return self.entitydefs[s]
|
||||
except KeyError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue