mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Command classes are now named identically to their commands, so reflect this
in 'find_command_class()' method.
This commit is contained in:
parent
1993f9ad0e
commit
592f28272e
1 changed files with 1 additions and 2 deletions
|
|
@ -447,8 +447,7 @@ class from it, and returns the class object.
|
|||
expected class was not found in it."""
|
||||
|
||||
module_name = 'distutils.command.' + command
|
||||
klass_name = string.join \
|
||||
(map (string.capitalize, string.split (command, '_')), '')
|
||||
klass_name = command
|
||||
|
||||
try:
|
||||
__import__ (module_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue