lipwig
lipwig copied to clipboard
Compatibility with Python 3.9
I'm getting the below error:
Traceback (most recent call last): File "/Users/cbarrueco/git/lipwig/./lipwig.py", line 7, in <module> from cgi import escape ImportError: cannot import name 'escape' from 'cgi' (/Users/cbarrueco/opt/anaconda3/lib/python3.9/cgi.py)
I've resolved changing the below line in lipwig.py:
from cgi import escape
to
from html import escape
It works fine for me.