From 590638f9a56440a2c41cc04f52272ede04c06a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Fri, 5 Sep 2008 09:23:43 +0200 Subject: Fix unneeded dict unpacking. --- lib/git/blob.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/git/blob.py') diff --git a/lib/git/blob.py b/lib/git/blob.py index fd83fe1d..0b4b19c2 100644 --- a/lib/git/blob.py +++ b/lib/git/blob.py @@ -46,7 +46,7 @@ class Blob(object): int """ if self._size is None: - self._size = int(self.repo.git.cat_file(self.id, **{'s': True}).rstrip()) + self._size = int(self.repo.git.cat_file(self.id, s=True).rstrip()) return self._size @property @@ -57,7 +57,7 @@ class Blob(object): Returns str """ - self.data_stored = self.data_stored or self.repo.git.cat_file(self.id, **{'p': True, 'with_raw_output': True}) + self.data_stored = self.data_stored or self.repo.git.cat_file(self.id, p=True, with_raw_output=True) return self.data_stored @property @@ -85,7 +85,7 @@ class Blob(object): Returns list: [GitPython.Commit, list: []] """ - data = repo.git.blame(commit, '--', file, **{'p': True}) + data = repo.git.blame(commit, '--', file, p=True) commits = {} blames = [] info = None @@ -120,12 +120,12 @@ class Blob(object): if info: c = commits.has_key(info['id']) and commits[info['id']] if not c: - c = Commit(repo, **{'id': info['id'], - 'author': Actor.from_string(info['author'] + ' ' + info['author_email']), - 'authored_date': info['author_date'], - 'committer': Actor.from_string(info['committer'] + ' ' + info['committer_email']), - 'committed_date': info['committer_date'], - 'message': info['summary']}) + c = Commit(repo, id=info['id'], + author=Actor.from_string(info['author'] + ' ' + info['author_email']), + authored_date=info['author_date'], + committer=Actor.from_string(info['committer'] + ' ' + info['committer_email']), + committed_date=info['committer_date'], + message=info['summary']) commits[info['id']] = c m = re.search(r'^\t(.*)$', line) -- cgit v1.2.1