Command classes are now named identically to their commands, so reflect this
authorGreg Ward <gward@python.net>
Fri, 18 Feb 2000 00:14:21 +0000 (00:14 +0000)
committerGreg Ward <gward@python.net>
Fri, 18 Feb 2000 00:14:21 +0000 (00:14 +0000)
in 'find_command_class()' method.

Lib/distutils/core.py

index 88e889b22fe43efd0930e978f3ba66c348daf308..f3951ac71c0b4bc823d31b5686155053ca8bef67 100644 (file)
@@ -447,8 +447,7 @@ class Distribution:
            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)