From be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:51:04 +0100 Subject: pep8 linting (blank lines expectations) E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n) --- git/diff.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'git/diff.py') diff --git a/git/diff.py b/git/diff.py index b4d2bae8..a8b12fef 100644 --- a/git/diff.py +++ b/git/diff.py @@ -14,7 +14,9 @@ from gitdb.util import hex_to_bin __all__ = ('Diffable', 'DiffIndex', 'Diff') + class Diffable(object): + """Common interface for all object that can be diffed against another object of compatible type. :note: @@ -109,6 +111,7 @@ class Diffable(object): class DiffIndex(list): + """Implements an Index for diffs, allowing a list of Diffs to be queried by the diff properties. @@ -120,7 +123,6 @@ class DiffIndex(list): # M = modified change_type = ("A", "D", "R", "M") - def iter_change_type(self, change_type): """ :return: @@ -149,6 +151,7 @@ class DiffIndex(list): class Diff(object): + """A Diff contains diff information between two Trees. It contains two sides a and b of the diff, members are prefixed with @@ -228,7 +231,6 @@ class Diff(object): self.diff = diff - def __eq__(self, other): for name in self.__slots__: if getattr(self, name) != getattr(other, name): -- cgit v1.2.1