Changes by Éric Araujo mer...@netwok.org:
--
resolution: - out of date
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17002
___
New submission from Cillian de Róiste:
I guess it should be wrapped in a try, except:
try:
from html.entities import name2codepoint
except ImportError:
from htmlentitydefs import name2codepoint
This works locally
Here's a sample traceback:
Traceback (most recent call last):
File
Ezio Melotti added the comment:
htmlentitydefs was renamed to html.entities in Python 3.
If this is supposed to run with Python 2 it should use the former, otherwise
the latter (unless it has the same codebase on both).
--
nosy: +ezio.melotti
type: crash - behavior
Éric Araujo added the comment:
Good call. All function-level imports are avoided in d2 unless absolutely
necessary, and this one slipped through the cracks. distutils2 went from
Python 2 to 3 to 2 and 3 again, so these things happen (and it’s one of the
reasons why I’ve always insisted on