From: Greg Ward Date: Fri, 18 Feb 2000 00:14:21 +0000 (+0000) Subject: Command classes are now named identically to their commands, so reflect this X-Git-Tag: v1.6a1~392 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=592f28272e1287e8cdb57fb1887c4782fa07281e;p=thirdparty%2FPython%2Fcpython.git Command classes are now named identically to their commands, so reflect this in 'find_command_class()' method. --- diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 88e889b22fe4..f3951ac71c0b 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -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)