Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed 'args' variables in django.core.management to 'argv' to be mo…

…re clear, and removed an unneeded import

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c554858f6b8394655e5cea4031e6b1ba1f08ba52 1 parent 12146f3
@adrianholovaty adrianholovaty authored
View
1  django/core/management/__init__.py
@@ -2,7 +2,6 @@
from optparse import OptionParser
import os
import sys
-import textwrap
# For backwards compatibility: get_version() used to be in this module.
get_version = django.get_version
View
10 django/core/management/base.py
@@ -49,13 +49,13 @@ def create_parser(self, prog_name):
version=self.get_version(),
option_list=self.option_list)
- def print_help(self, args):
- parser = self.create_parser(args[0])
+ def print_help(self, argv):
+ parser = self.create_parser(argv[0])
parser.print_help()
- def run(self, args):
- parser = self.create_parser(args[0])
- (options, args) = parser.parse_args(args[1:])
+ def run(self, argv):
+ parser = self.create_parser(argv[0])
+ options, args = parser.parse_args(argv[1:])
if options.settings:
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
if options.pythonpath:
Please sign in to comment.
Something went wrong with that request. Please try again.