aboutsummaryrefslogtreecommitdiff
path: root/bestflags/generation.py
diff options
context:
space:
mode:
authorYuheng Long <yuhenglong@google.com>2013-07-11 07:49:01 -0700
committerChromeBot <chrome-bot@google.com>2013-07-12 15:52:30 -0700
commit26ec76c8a9d4f5dd023513d2772fa6cd4b6749ea (patch)
treeb87fb33899111b369c1fd26b052ffaeaf1776fa0 /bestflags/generation.py
parent49358b75c25a44760e884245440dc96e55812d04 (diff)
downloadtoolchain-utils-26ec76c8a9d4f5dd023513d2772fa6cd4b6749ea.tar.gz
Rename the methods and use the dummy parameters.
Refactor methods names and substitute unused variables with dummy variables. BUG=None TEST=unit testing for the pipeline stage and pipeline workers. Change-Id: I237d893201853d8620ff886c8fb9012c38b83805 Reviewed-on: https://gerrit-int.chromium.org/40865 Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Reviewed-by: Simon Que <sque@google.com>
Diffstat (limited to 'bestflags/generation.py')
-rw-r--r--bestflags/generation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bestflags/generation.py b/bestflags/generation.py
index 413b63b8..29be9685 100644
--- a/bestflags/generation.py
+++ b/bestflags/generation.py
@@ -23,7 +23,7 @@ class Generation(object):
"""
self._pool = pool
- def next(self):
+ def Next(self):
"""Calculate the next generation.
This is the core of the framework implementation.
@@ -32,14 +32,14 @@ class Generation(object):
A new generation.
"""
- def pool(self):
+ def Pool(self):
"""Return the task set of this generation."""
pass
- def improve(self):
+ def Improve(self):
"""True if this generation has improvement over its parent generation."""
pass
- def get_best(self):
+ def GetBest(self):
"""Get the best flagset."""
return self._pool[0]