mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +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 Distribution:
|
||||||
expected class was not found in it."""
|
expected class was not found in it."""
|
||||||
|
|
||||||
module_name = 'distutils.command.' + command
|
module_name = 'distutils.command.' + command
|
||||||
klass_name = string.join \
|
klass_name = command
|
||||||
(map (string.capitalize, string.split (command, '_')), '')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
__import__ (module_name)
|
__import__ (module_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue