summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-02-18 00:14:21 (GMT)
committerGreg Ward <gward@python.net>2000-02-18 00:14:21 (GMT)
commit592f28272e1287e8cdb57fb1887c4782fa07281e (patch)
tree7593435eb086d185a55dc4bdf14cab68c1cc71d3
parent1993f9ad0e2cf53c8dc441cbbb44eb2e3a190538 (diff)
downloadcpython-592f28272e1287e8cdb57fb1887c4782fa07281e.zip
cpython-592f28272e1287e8cdb57fb1887c4782fa07281e.tar.gz
cpython-592f28272e1287e8cdb57fb1887c4782fa07281e.tar.bz2
Command classes are now named identically to their commands, so reflect this
in 'find_command_class()' method.
-rw-r--r--Lib/distutils/core.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 88e889b..f3951ac 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)