diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-04 11:36:37 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-04 11:36:37 -0400 |
commit | a7bb4a1416073bf93ab0217099d063810d630818 (patch) | |
tree | c93f7cd36d3dc40147e78f79b04b657d04a9ed86 /cherrypy/_cpcompat.py | |
parent | a14faa1a1d415191fcbd9c27e9d221232cd52dfa (diff) | |
download | cherrypy-git-a7bb4a1416073bf93ab0217099d063810d630818.tar.gz |
Remove _cpcompat.escape_html
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r-- | cherrypy/_cpcompat.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py index 884f626e..250565f9 100644 --- a/cherrypy/_cpcompat.py +++ b/cherrypy/_cpcompat.py @@ -90,20 +90,3 @@ else: # Python 3.2 and earlier Timer = threading._Timer Event = threading._Event - -# html module come in 3.2 version -try: - from html import escape -except ImportError: - from cgi import escape - - -# html module needed the argument quote=False because in cgi the default -# is False. With quote=True the results differ. - -def escape_html(s, escape_quote=False): - """Replace special characters "&", "<" and ">" to HTML-safe sequences. - - When escape_quote=True, escape (') and (") chars. - """ - return escape(s, quote=escape_quote) |