From 755cb8025489e129a3e4f03e0551e04b9e360e7f Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Tue, 15 Jun 2010 22:41:47 +0000 Subject: [PATCH] Fixed misleading variable name -- we're not using indices, but keys. --- build/commands.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/commands.py b/build/commands.py index 9a7f7167..438a7e3f 100644 --- a/build/commands.py +++ b/build/commands.py @@ -26,7 +26,7 @@ class InternalCommands: prevdir = '' # by default, no index specified as arg - generator_index = None + generator_id = None # by default, prompt user for input no_prompts = False @@ -482,9 +482,9 @@ class InternalCommands: config.write(configfile) def get_generator_from_config(self): - if self.generator_index: + if self.generator_id: generators = self.get_generators() - return generators[self.generator_index] + return generators[self.generator_id] else: config = ConfigParser.RawConfigParser() config.read(self.config_filepath()) @@ -537,8 +537,8 @@ class InternalCommands: generators = self.get_generators() # if user has specified a generator as an argument - if self.generator_index: - return generators[self.generator_index] + if self.generator_id: + return generators[self.generator_id] # if we can accept user input elif not self.no_prompts: @@ -680,7 +680,7 @@ class CommandHandler: if o == '--no-prompts': self.ic.no_prompts = True elif o in ('-g', '--generator'): - self.ic.generator_index = a + self.ic.generator_id = a def get_build_mode(self): mode = None