From c80d727e374321573bb00e23876a67c77ff466e3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 13:48:29 +0100 Subject: Bumped version, updated changelog, reduced code smell There is more work to do though, as many imports are still incorrect. Also, there are still print statements --- git/diff.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'git/diff.py') diff --git a/git/diff.py b/git/diff.py index 456974af..5325ad6b 100644 --- a/git/diff.py +++ b/git/diff.py @@ -7,7 +7,6 @@ import re from objects.blob import Blob from objects.util import mode_str_to_int -from exc import GitCommandError from gitdb.util import hex_to_bin @@ -106,7 +105,7 @@ class Diffable(object): diff_method = Diff._index_from_patch_format index = diff_method(self.repo, proc.stdout) - status = proc.wait() + proc.wait() return index @@ -321,7 +320,7 @@ class Diff(object): modify, delete and add files :return: git.DiffIndex""" # handles - # :100644 100644 6870991011cc8d9853a7a8a6f02061512c6a8190 37c5e30c879213e9ae83b21e9d11e55fc20c54b7 M .gitignore + # :100644 100644 687099101... 37c5e30c8... M .gitignore index = DiffIndex() for line in stream: if not line.startswith(":"): -- cgit v1.2.1