summaryrefslogtreecommitdiff
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2008-05-17 22:02:32 +0000
committerFred Drake <fdrake@acm.org>2008-05-17 22:02:32 +0000
commit3c50ea4303ad58785e7f5058cdd353c6d0140ee4 (patch)
tree127214cdbbaac0fad36eb75b08e7868a666283c8 /Lib/test/test_codeccallbacks.py
parent9b020c784c3a1ec3d412bca1ffed2d24232b0a54 (diff)
downloadcpython-git-3c50ea4303ad58785e7f5058cdd353c6d0140ee4.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.py4
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)