Skip to content

Compatibility with Python 3.9 #7

Description

@chimuchile

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions