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 StringIO to cStringIO

Changeset 7284dee39f1f

Parent 7a05af63910d

by Steve Borho

Changes to one file · Browse files at 7284dee39f1f Showing diff from parent 7a05af63910d Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​status.py Stacked
 
7
8
9
10
 
11
12
13
 
712
713
714
715
 
716
717
718
719
720
 
721
722
723
 
7
8
9
 
10
11
12
13
 
712
713
714
 
715
716
717
718
719
 
720
721
722
723
@@ -7,7 +7,7 @@
     import os -import StringIO +import cStringIO    import pygtk  pygtk.require('2.0') @@ -712,12 +712,12 @@
  for s in patch.diff(self.repo, self._node1, self._node2,   match=matcher, opts=diffopts):   difftext.extend(s.splitlines(True)) - difftext = StringIO.StringIO(''.join(difftext)) + difftext = cStringIO.StringIO(''.join(difftext))   difftext.seek(0)   self._shelve_chunks = hgshelve.parsepatch(difftext)     for chunk in self._shelve_chunks: - fp = StringIO.StringIO() + fp = cStringIO.StringIO()   chunk.pretty(fp)   markedup = markup(fp)   isheader = isinstance(chunk, hgshelve.header)