diff options
author | Steve Frécinaux <code@istique.net> | 2008-09-05 09:23:43 +0200 |
---|---|---|
committer | Steve Frécinaux <code@istique.net> | 2008-09-05 09:23:43 +0200 |
commit | 590638f9a56440a2c41cc04f52272ede04c06a43 (patch) | |
tree | fbef0d64b08db9d9e6b7c7f812b70c666243804c /lib/git/tree.py | |
parent | 8df638c22c75ddc9a43ecdde90c0c9939f5009e7 (diff) | |
download | gitpython-590638f9a56440a2c41cc04f52272ede04c06a43.tar.gz |
Fix unneeded dict unpacking.
Diffstat (limited to 'lib/git/tree.py')
-rw-r--r-- | lib/git/tree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/tree.py b/lib/git/tree.py index daa2a49e..f1aa0b3b 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -27,7 +27,7 @@ class Tree(LazyMixin): @classmethod def construct(cls, repo, treeish, paths = []): output = repo.git.ls_tree(treeish, *paths) - return Tree(repo, **{'id': treeish}).construct_initialize(repo, treeish, output) + return Tree(repo, id=treeish).construct_initialize(repo, treeish, output) def construct_initialize(self, repo, id, text): self.repo = repo @@ -62,9 +62,9 @@ class Tree(LazyMixin): return None if typ == "tree": - return Tree(repo, **{'id': id, 'mode': mode, 'name': name}) + return Tree(repo, id=id, mode=mode, name=name) elif typ == "blob": - return blob.Blob(repo, **{'id': id, 'mode': mode, 'name': name}) + return blob.Blob(repo, id=id, mode=mode, name=name) elif typ == "commit": return None else: |