From b49f9a1660a232a508d40b9d9a2d1138d403504b Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Wed, 30 Jul 2008 01:00:24 +0200 Subject: [PATCH] gitstats: Renamed Memory->GitCache and Options->OptionList The current names were somewhat questionable, these renames give them a name that better explains the purpose of these classes. --- src/git_stats/bug.py | 6 +++--- src/git_stats/config.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/git_stats/bug.py b/src/git_stats/bug.py index 9686d4c..cfa709c 100644 --- a/src/git_stats/bug.py +++ b/src/git_stats/bug.py @@ -99,7 +99,7 @@ class CommitInfo: return res -class Memory(): +class GitCache(): """Storage class. Fields: @@ -151,7 +151,7 @@ def aggregateType(options): if len(commits) > 1000 and options.ignore_parents == None: options.ignore_parents = True - memory = Memory() + memory = GitCache() result = [] @@ -297,7 +297,7 @@ def dispatch(*args): result = aggregateType(options) elif options.type: kwargs = config.extractOptions(options, options_list) - memory = Memory() + memory = GitCache() stats = determineType(options.type, memory, kwargs) result = [str(stats)] diff --git a/src/git_stats/config.py b/src/git_stats/config.py index 5cdd4ef..9cf1100 100644 --- a/src/git_stats/config.py +++ b/src/git_stats/config.py @@ -4,8 +4,8 @@ import os from git import Repo -class Options: - """Options class +class OptionList: + """OptionList class """ pass @@ -176,7 +176,7 @@ def extractOptions(options, options_list): opts = readDefaultConfigs() - result = Options() + result = OptionList() for opt in options_list: if getattr(options, opt, None) == None: -- 2.11.4.GIT