python-kit icon indicating copy to clipboard operation
python-kit copied to clipboard

AttributeError: module 'cgi' has no attribute 'escape'

Open reverie opened this issue 5 years ago • 2 comments

Can't use as_html without hitting this exception under Python 3.9

reverie avatar Dec 31 '20 22:12 reverie

If anyone else is in a rush... 😬

import cgi, html
cgi.escape = html.escape

reverie avatar Jan 03 '21 15:01 reverie

Yes, it's actually already broken since Python 3.8, see #50

jlaine avatar Apr 28 '21 13:04 jlaine