Skip to content

Commit

Permalink
Fix a typo: command_field -> command_file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed May 2, 2013
1 parent d847e7c commit cf2fcc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cliff_rackspace/command_manager.py
Expand Up @@ -49,7 +49,7 @@ def _load_commands(self):
continue

for command_file in os.listdir(directory):
if not self._is_command_field(command_file):
if not self._is_command_file(command_file):
continue

name = splitext(basename(command_file))[0]
Expand Down Expand Up @@ -78,7 +78,7 @@ def _load_commands(self):
command_class=command_module)
self.commands[commands_directory][name] = wrapper

def _is_command_field(self, name):
def _is_command_file(self, name):
return name.endswith('.py') and name != '__init__.py'

def __iter__(self):
Expand Down

0 comments on commit cf2fcc9

Please sign in to comment.