Changeset 3a90eccc738e…
Parent f88a497270d1…
by
Changes to one file · Browse files at 3a90eccc738e Showing diff from parent f88a497270d1 Diff from another changeset...
@@ -780,13 +780,12 @@ def _show_diff_hunks(self, files):
''' Update the diff text '''
def markup(chunk):
- import cgi
hunk = ""
chunk.seek(0)
lines = chunk.readlines()
lines[-1] = lines[-1].strip('\n\r')
for line in lines:
- line = cgi.escape(toutf(line))
+ line = gobject.markup_escape_text(toutf(line))
if line.startswith('---') or line.startswith('+++'):
hunk += '<span foreground="#000090">%s</span>' % line
elif line.startswith('-'):
|
Loading...