diff options
Diffstat (limited to 'lib/git_python/stats.py')
-rw-r--r-- | lib/git_python/stats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git_python/stats.py b/lib/git_python/stats.py index f1e10348..95dc875e 100644 --- a/lib/git_python/stats.py +++ b/lib/git_python/stats.py @@ -3,7 +3,7 @@ class Stats(object): self.repo = repo self.total = total self.files = files - + @classmethod def list_from_string(cls, repo, text): hsh = {'total': {'insertions': 0, 'deletions': 0, 'lines': 0, 'files': 0}, 'files': {}} @@ -14,4 +14,4 @@ class Stats(object): hsh['total']['lines'] = (hsh['total']['deletions'] + hsh['total']['insertions']) hsh['total']['files'] += 1 hsh['files'][filename.strip()] = {'insertions': int(insertions), 'deletions': int(deletions)} - return Stats(repo, hsh['total'], hsh['files'])
\ No newline at end of file + return Stats(repo, hsh['total'], hsh['files']) |