--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDiffParser.py Sat Sep 21 20:30:56 2019 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDiffParser.py Sat Sep 21 22:03:03 2019 +0200 @@ -87,11 +87,11 @@ self.__hunks.append(self.__initHunk()) self.__hunks[-1]["start"] = lineIdx (self.__hunks[-1]["oldStart"], - self.__hunks[-1]["oldCount"]) = \ - self.__parseRange(m.group(1)) + self.__hunks[-1]["oldCount"]) = self.__parseRange( + m.group(1)) (self.__hunks[-1]["newStart"], - self.__hunks[-1]["newCount"]) = \ - self.__parseRange(m.group(2)) + self.__hunks[-1]["newCount"]) = self.__parseRange( + m.group(2)) self.__hunks[-1]["heading"] = m.group(3) elif not self.__hunks: raise AssertionError("Malformed hunk header: '{0}'" @@ -199,13 +199,17 @@ lineContent = line[1:] if not (startIndex <= lineIndex <= endIndex): - if (not reverse and lineType == ADDITION) or \ - (reverse and lineType == DELETION): + if ( + (not reverse and lineType == ADDITION) or + (reverse and lineType == DELETION) + ): previousLineSkipped = True continue - elif (not reverse and lineType == DELETION) or \ - (reverse and lineType == ADDITION): + elif ( + (not reverse and lineType == DELETION) or + (reverse and lineType == ADDITION) + ): lineType = CONTEXT if lineType == NONEWLINE and previousLineSkipped: