diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-03 23:35:55 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-04 02:10:48 +0200 |
commit | a469af892b3e929cbe9d29e414b6fcd59bec246e (patch) | |
tree | f1ab9ed8946b3be2bb7ed1d3529ad5c0f348f550 /git/objects/commit.py | |
parent | be44602b633cfb49a472e192f235ba6de0055d38 (diff) | |
download | gitpython-a469af892b3e929cbe9d29e414b6fcd59bec246e.tar.gz |
src: No PyDev warnings
+ Mark all unused vars and other non-pep8 (PyDev) warnings
+ test_utils:
+ enable & fix forgotten IterableList looped path.
+ unittestize all assertions.
+ remote: minor fix progress dispatching unknown err-lines
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index 000ab3d0..1534c552 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -140,7 +140,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): def _set_cache_(self, attr): if attr in Commit.__slots__: # read the data in a chunk, its faster - then provide a file wrapper - binsha, typename, self.size, stream = self.repo.odb.stream(self.binsha) + binsha, typename, self.size, stream = self.repo.odb.stream(self.binsha) # @UnusedVariable self._deserialize(BytesIO(stream.read())) else: super(Commit, self)._set_cache_(attr) @@ -267,7 +267,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): hexsha = line.strip() if len(hexsha) > 40: # split additional information, as returned by bisect for instance - hexsha, rest = line.split(None, 1) + hexsha, _ = line.split(None, 1) # END handle extra info assert len(hexsha) == 40, "Invalid line: %s" % hexsha |