summaryrefslogtreecommitdiff
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2008-05-17 21:14:05 +0000
committerFred Drake <fdrake@acm.org>2008-05-17 21:14:05 +0000
commitcb51d84214ed07268338392abef986b9a56d0141 (patch)
tree474b5ec5794e8e97953df73059c55d78cc2df631 /Lib/test/test_codeccallbacks.py
parent91ae2502739ecfcc7a8a013473553224b8387521 (diff)
downloadcpython-git-cb51d84214ed07268338392abef986b9a56d0141.tar.gz
update references and documentation for modules in the new html package
(http://bugs.python.org/issue2882)
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 656551d7c0..a0fa34347d 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(u"&%s;" % htmlentitydefs.codepoint2name[ord(c)])
+ l.append(u"&%s;" % html.entities.codepoint2name[ord(c)])
except KeyError:
l.append(u"&#%d;" % ord(c))
return (u"".join(l), exc.end)