From 71bbe910af332e93ff82da20b0967cc7d7b18649 Mon Sep 17 00:00:00 2001 From: Stephen Shirley <diamond@google.com> Date: Mon, 31 Jan 2011 14:18:48 +0100 Subject: [PATCH] Fix grammar of var naming flatten is the verb, flattened is the adjective. Signed-off-by: Stephen Shirley <diamond@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- tools/cluster-merge | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/cluster-merge b/tools/cluster-merge index d2ef90ec9..fbb2b6871 100755 --- a/tools/cluster-merge +++ b/tools/cluster-merge @@ -49,21 +49,21 @@ PAUSE_PERIOD_OPT = cli.cli_option("-p", "--watcher-pause-period", default=1800, " should be suspended from running")) -def Flatten(unflatten_list): +def Flatten(unflattened_list): """Flattens a list. - @param unflatten_list: A list of unflatten list objects. - @return: A flatten list + @param unflattened_list: A list of unflattened list objects. + @return: A flattened list """ - flatten_list = [] + flattened_list = [] - for item in unflatten_list: + for item in unflattened_list: if isinstance(item, list): - flatten_list.extend(Flatten(item)) + flattened_list.extend(Flatten(item)) else: - flatten_list.append(item) - return flatten_list + flattened_list.append(item) + return flattened_list class MergerData(object): -- GitLab