diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 22:14:02 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 22:16:54 +0200 |
commit | ea33fe8b21d2b02f902b131aba0d14389f2f8715 (patch) | |
tree | ce48feb6d2da2bed92240c0fbd2350e05f7b7519 /lib/git/errors.py | |
parent | 1496979cf7e9692ef869d2f99da6141756e08d25 (diff) | |
download | gitpython-ea33fe8b21d2b02f902b131aba0d14389f2f8715.tar.gz |
Index: Is now diffable and appears to properly implement diffing against other items as well as the working tree
Diff.Diffable: added callback allowing superclasses to preprocess diff arguments
Diff.Diff: added eq, ne and hash methods, string methods would be nice
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r-- | lib/git/errors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py index 18c58073..cde2798a 100644 --- a/lib/git/errors.py +++ b/lib/git/errors.py @@ -25,8 +25,8 @@ class GitCommandError(Exception): self.stderr = stderr self.status = status self.command = command - + def __str__(self): - return repr("'%s' returned exit status %d: %r" % - (' '.join(self.command), self.status, str(self.stderr))) + return ("'%s' returned exit status %i: %s" % + (' '.join(str(i) for i in self.command), self.status, self.stderr)) |