diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-05-21 13:51:18 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-05-21 13:51:18 (GMT) |
commit | f64dcf3ce0fee21146ac83f9f39b6653a5db84aa (patch) | |
tree | c9656944c24bb0434c1656c7707e0dd9afc90da8 /Lib/html | |
parent | 96ad65da2fa49e3ebc1da26177f2322be8f7b24f (diff) | |
download | cpython-f64dcf3ce0fee21146ac83f9f39b6653a5db84aa.zip cpython-f64dcf3ce0fee21146ac83f9f39b6653a5db84aa.tar.gz cpython-f64dcf3ce0fee21146ac83f9f39b6653a5db84aa.tar.bz2 |
Change test_htmlparser to reflect the HTMLParser -> html.parser
rename in r63439.
Also fix one occurrence of unichr() in html.parser.
Diffstat (limited to 'Lib/html')
-rw-r--r-- | Lib/html/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py index 352a788..828eece 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -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: |