Skip to content

Changes to accommodate methods removed in Python 3.8#43

Open
zymurgybc wants to merge 1 commit intolazylibrarian:masterfrom
zymurgybc:ZymurgyBC-Python_3.8_Compatibility
Open

Changes to accommodate methods removed in Python 3.8#43
zymurgybc wants to merge 1 commit intolazylibrarian:masterfrom
zymurgybc:ZymurgyBC-Python_3.8_Compatibility

Conversation

@zymurgybc
Copy link

@zymurgybc zymurgybc commented Mar 1, 2022

Two older deprecated methods were removed in Python 3.8 and prevent startup. One method is now implemented in the html module.

if _version_info <=(3,7):
from cgi import escape as _escape
else:
from html import escape as _escape

The other simply seems to be removed, so I made the line conditional with older versions.

I also fixed an "is not" expression with a literal which should be a !=

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant