diff options
author | Fred Drake <fdrake@acm.org> | 2008-05-20 06:08:38 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2008-05-20 06:08:38 +0000 |
commit | d995e1150cab57ed7c885d4b7dd943495022936b (patch) | |
tree | 5daaf7592952fd99af8699b93c1d87d0084a9c1d /Lib/test/test_codeccallbacks.py | |
parent | 1f60af87f5657800e333090fb9b204f54163254e (diff) | |
download | cpython-git-d995e1150cab57ed7c885d4b7dd943495022936b.tar.gz |
revert creation of the html.entities and html.parser modules
(http://bugs.python.org/issue2882)
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 a0fa34347d..656551d7c0 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, html.entities, unicodedata +import sys, codecs, htmlentitydefs, 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;" % html.entities.codepoint2name[ord(c)]) + l.append(u"&%s;" % htmlentitydefs.codepoint2name[ord(c)]) except KeyError: l.append(u"&#%d;" % ord(c)) return (u"".join(l), exc.end) |