~ubuntu-branches/ubuntu/vivid/git-cola/vivid

« back to all changes in this revision

Viewing changes to cola/diffparse.py

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2014-03-22 15:10:46 UTC
  • mfrom: (1.3.23)
  • Revision ID: package-import@ubuntu.com-20140322151046-s2lfr17hej2brlbu
Tags: 2.0.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from __future__ import division, absolute_import, unicode_literals
 
2
 
1
3
import os
2
4
import re
3
5
 
268
270
                if special_selection in self.fwd_diff:
269
271
                    selection = special_selection
270
272
                else:
271
 
                    return 0, ''
 
273
                    return 0, '', ''
272
274
            start = self.fwd_diff.index(selection)
273
275
            end = start + len(selection)
274
276
            self.set_diffs_to_range(start, end)