| |
@@ -21,9 +21,9 @@
|
| |
# Mike McLean <mikem@redhat.com>
|
| |
from __future__ import absolute_import, division
|
| |
|
| |
- import cgi
|
| |
import datetime
|
| |
import hashlib
|
| |
+ import html
|
| |
import os
|
| |
import ssl
|
| |
import stat
|
| |
@@ -669,7 +669,7 @@
|
| |
else:
|
| |
text = self.text[:length]
|
| |
if self.need_escape:
|
| |
- text = cgi.escape(text)
|
| |
+ text = html.escape(text)
|
| |
if self.size > 0 and text == '':
|
| |
text = self.empty_str_placeholder
|
| |
return '%s%s%s' % (self.begin_tag, text, self.end_tag)
|
| |
@@ -725,7 +725,7 @@
|
| |
size += fragment.size
|
| |
|
| |
if self.need_escape:
|
| |
- line_text = cgi.escape(line_text)
|
| |
+ line_text = html.escape(line_text)
|
| |
|
| |
return '%s%s%s%s' % (self.begin_tag, line_text, postscript, self.end_tag)
|
| |
|
| |
Changes should work for most of Python3.X versions out there and should cause no change on behaviour, but those changes are required to have koji properly working with Python3.8 since in there the function is actually gone.