Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

status: switch from cgi.escape to gobject.markup_escape_text()

Changeset 3a90eccc738e

Parent f88a497270d1

by Steve Borho

Changes to one file · Browse files at 3a90eccc738e Showing diff from parent f88a497270d1 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
780
781
782
783
784
785
786
787
788
789
 
790
791
792
 
780
781
782
 
783
784
785
786
787
 
788
789
790
791
@@ -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('-'):