diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 15:38:20 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 15:38:20 +0100 |
commit | e0c65d6638698f4e3a9e726efca8c0bcf466cd62 (patch) | |
tree | 8ef496b0542ee46e1e93954a8b39456e643c40a4 /git/objects | |
parent | 02e942b7c603163c87509195d76b2117c4997119 (diff) | |
download | gitpython-e0c65d6638698f4e3a9e726efca8c0bcf466cd62.tar.gz |
Make flake8 happy
Diffstat (limited to 'git/objects')
-rw-r--r-- | git/objects/commit.py | 8 | ||||
-rw-r--r-- | git/objects/fun.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index 53af22cd..8f93d1b9 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -382,14 +382,14 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): c = self.committer fmt = "%s %s <%s> %s %s\n" write((fmt % ("author", aname, a.email, - self.authored_date, - altz_to_utctz_str(self.author_tz_offset))).encode(self.encoding)) + self.authored_date, + altz_to_utctz_str(self.author_tz_offset))).encode(self.encoding)) # encode committer aname = c.name write((fmt % ("committer", aname, c.email, - self.committed_date, - altz_to_utctz_str(self.committer_tz_offset))).encode(self.encoding)) + self.committed_date, + altz_to_utctz_str(self.committer_tz_offset))).encode(self.encoding)) if self.encoding != self.default_encoding: write(("encoding %s\n" % self.encoding).encode('ascii')) diff --git a/git/objects/fun.py b/git/objects/fun.py index ba8dbcf4..c04f80b5 100644 --- a/git/objects/fun.py +++ b/git/objects/fun.py @@ -40,6 +40,7 @@ def tree_to_stream(entries, write): write(b''.join((mode_str, b' ', name, b'\0', binsha))) # END for each item + def tree_entries_from_data(data): """Reads the binary representation of a tree and returns tuples of Tree items :param data: data block with tree data (as bytes) |