mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
#2830: add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
This commit is contained in:
parent
70543acfa1
commit
1f7fffb308
11 changed files with 94 additions and 28 deletions
|
|
@ -293,7 +293,7 @@ following WSGI-application::
|
|||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import sys, os
|
||||
from cgi import escape
|
||||
from html import escape
|
||||
from flup.server.fcgi import WSGIServer
|
||||
|
||||
def app(environ, start_response):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue