diff options
author | Fred Drake <fdrake@acm.org> | 2008-05-17 22:02:32 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2008-05-17 22:02:32 +0000 |
commit | 51c60d3644186c55c521dd62f866b358c0e5736e (patch) | |
tree | b741517cb0f0c874b56d0f61cdafc38f998f859e /Lib/test/test_codeccallbacks.py | |
parent | c844ac2d62201d5f40f934a69989629abac63e62 (diff) | |
download | cpython-51c60d3644186c55c521dd62f866b358c0e5736e.tar.gz |
rename HTMLParser to html.parser and htmlentitydefs to html.entities;
includes merge of trunk revision 63432
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r-- | Lib/test/test_codeccallbacks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index 12eb068c2a..64d1645dbb 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -1,5 +1,5 @@ import test.test_support, unittest -import sys, codecs, htmlentitydefs, unicodedata +import sys, codecs, html.entities, unicodedata class PosReturn: # this can be used for configurable callbacks @@ -86,7 +86,7 @@ class CodecCallbackTest(unittest.TestCase): l = [] for c in exc.object[exc.start:exc.end]: try: - l.append("&%s;" % htmlentitydefs.codepoint2name[ord(c)]) + l.append("&%s;" % html.entities.codepoint2name[ord(c)]) except KeyError: l.append("&#%d;" % ord(c)) return ("".join(l), exc.end) |