Commit bd7a8fb7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! cgi.escape is deprecated in Python 3.2 and removed in Python 3.8.

parent e0fcd76d
Pipeline #23912 failed with stage
in 0 seconds
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from six import unichr from six import unichr
from zLOG import ERROR from zLOG import ERROR
from six.moves.html_parser import HTMLParser from six.moves.html_parser import HTMLParser, HTMLParseError
import re import re
from Products.PythonScripts.standard import html_quote from Products.PythonScripts.standard import html_quote
import codecs import codecs
...@@ -294,7 +294,7 @@ class StrippingParser(HTMLParser): ...@@ -294,7 +294,7 @@ class StrippingParser(HTMLParser):
self.original_charset = charset self.original_charset = charset
v = charset_parser.sub( v = charset_parser.sub(
CharsetReplacer(self.default_encoding), v) CharsetReplacer(self.default_encoding), v)
self.result.append(' %s="%s"' % (k, html_quote(v, True))) self.result.append(' %s="%s"' % (k, html_quote(v)))
#UNUSED endTag = '</%s>' % tag #UNUSED endTag = '</%s>' % tag
if safeToInt(self.valid.get(tag)): if safeToInt(self.valid.get(tag)):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment