From 1f7fffb308390d10a2c6a4ec624f18cfeef97aeb Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 15 Oct 2010 15:57:45 +0000 Subject: #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. --- Doc/howto/webservers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Doc/howto/webservers.rst') diff --git a/Doc/howto/webservers.rst b/Doc/howto/webservers.rst index 7f68b3b1af..049fe1b5f0 100644 --- a/Doc/howto/webservers.rst +++ b/Doc/howto/webservers.rst @@ -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): -- cgit v1.2.1