mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
update references and documentation for modules in the new html package
(http://bugs.python.org/issue2882)
This commit is contained in:
parent
91ae250273
commit
cb51d84214
7 changed files with 23 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue