The changes module no longer generates file diffs with 0 insertions/deletions.

Under certain conditions this could previously cause a division by zero in the
timeline.TimelineData.get_multiplier() method.
This commit is contained in:
Adam Waldenberg 2012-05-05 23:24:14 +02:00
parent 2d3e8e673c
commit 4b1267ba39
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class FileDiff:
@staticmethod
def is_filediff_line(string):
string = string.split("|")
return string.__len__() == 2 and string[1].find("Bin") == -1
return string.__len__() == 2 and string[1].find("Bin") == -1 and ('+' in string[1] or '-' in string[1])
@staticmethod
def get_extension(string):