summaryrefslogtreecommitdiff
path: root/lib/git/stats.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/stats.py')
-rw-r--r--lib/git/stats.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/git/stats.py b/lib/git/stats.py
index a39d1dab..19b1591f 100644
--- a/lib/git/stats.py
+++ b/lib/git/stats.py
@@ -31,8 +31,9 @@ class Stats(object):
files = number of changed files as int
"""
- def __init__(self, repo, total, files):
- self.repo = repo
+ __slots__ = ("total", "files")
+
+ def __init__(self, total, files):
self.total = total
self.files = files
@@ -56,4 +57,4 @@ class Stats(object):
hsh['files'][filename.strip()] = {'insertions': insertions,
'deletions': deletions,
'lines': insertions + deletions}
- return Stats(repo, hsh['total'], hsh['files'])
+ return Stats(hsh['total'], hsh['files'])