summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-10 04:33:24 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-10 04:33:24 +0000
commitf15a5c7abb55b37ec2928e7afb38df0081e68226 (patch)
tree48e0b5ec20dea2c96cdf8e94291edf072c33bf0b
parent4453f65c78762a1e72d87d6a02453f36b2c3ebf7 (diff)
Renamed a variable in ManagementUtility.execute() for clarity
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index d39d69eff1..16d1c394e5 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -87,12 +87,12 @@ class ManagementUtility(object):
if argv is None:
argv = sys.argv
try:
- command_name = argv[1]
+ subcommand = argv[1]
except IndexError:
sys.stderr.write("Type '%s help' for usage.\n" % os.path.basename(argv[0]))
sys.exit(1)
- if command_name == 'help':
+ if subcommand == 'help':
if len(argv) > 2:
self.fetch_command(argv[2], argv[0]).print_help(argv[2:])
else:
@@ -104,7 +104,7 @@ class ManagementUtility(object):
elif argv[1:] == ['--help']:
self.print_help(argv)
else:
- self.fetch_command(command_name, argv[0]).run(argv[1:])
+ self.fetch_command(subcommand, argv[0]).run(argv[1:])
class ProjectManagementUtility(ManagementUtility):
"""