Finished a sentence that didn't get committed in [5923].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6ad0a01887
commit
7fc5a3b2d2
|
@ -22,7 +22,7 @@ def load_command_class(module, name):
|
||||||
"""
|
"""
|
||||||
Given a command name, returns the Command class instance. Raises
|
Given a command name, returns the Command class instance. Raises
|
||||||
Raises ImportError if a command module doesn't exist, or AttributeError
|
Raises ImportError if a command module doesn't exist, or AttributeError
|
||||||
if a command module doesn't include .
|
if a command module doesn't contain a Command instance.
|
||||||
"""
|
"""
|
||||||
# Let any errors propogate.
|
# Let any errors propogate.
|
||||||
return getattr(__import__('%s.management.commands.%s' % (module, name), {}, {}, ['Command']), 'Command')()
|
return getattr(__import__('%s.management.commands.%s' % (module, name), {}, {}, ['Command']), 'Command')()
|
||||||
|
|
Loading…
Reference in New Issue