Skip to content

Use html.escape() instead of cgi.escape() #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2018
Merged

Use html.escape() instead of cgi.escape() #339

merged 1 commit into from
Jul 15, 2018

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jul 15, 2018

Python 3.2+ deprecated cgi.escape() for html.escape(). And in 3.8
cgi.escape() has been completely removed. This patch conditional
makes use of html.escape() for 3.2 and higher.

Fixes issue #338

Signed-off-by: Eric Brown browne@vmware.com

Python 3.2+ deprecated cgi.escape() for html.escape(). And in 3.8
cgi.escape() has been completely removed. This patch conditional
makes use of html.escape() for 3.2 and higher.

Fixes issue #338

Signed-off-by: Eric Brown <browne@vmware.com>
@ericwb ericwb merged commit 0d9551c into PyCQA:master Jul 15, 2018
@ericwb ericwb deleted the cgi.escape branch August 6, 2018 20:09
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.

2 participants