diff Lib/html/parser.py @ 47205:7aa9ad658014

Change test_htmlparser to reflect the HTMLParser -> html.parser rename in r63439. Also fix one occurrence of unichr() in html.parser.
author Mark Dickinson <dickinsm@gmail.com>
date Wed, 21 May 2008 13:51:18 +0000
parents 7296a2fb4786
children 83b2d07b475b
line wrap: on
line diff
--- a/Lib/html/parser.py	Tue May 20 22:09:04 2008 +0000
+++ b/Lib/html/parser.py	Wed May 21 13:51:18 2008 +0000
@@ -378,7 +378,7 @@
                 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: