summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-23 01:55:01 (GMT)
committerGreg Ward <gward@python.net>2000-05-23 01:55:01 (GMT)
commit5edcd90f8c7452b58bf8a070a724e588b1a94807 (patch)
treea9104257baf50fad60f8eada6dabf0a21dc6bd26 /Lib
parent3c67b1dd08b80a6052d4c097ca5d1b399f0dd941 (diff)
downloadcpython-5edcd90f8c7452b58bf8a070a724e588b1a94807.zip
cpython-5edcd90f8c7452b58bf8a070a724e588b1a94807.tar.gz
cpython-5edcd90f8c7452b58bf8a070a724e588b1a94807.tar.bz2
Use 'get_command_obj()' instead of 'find_command_obj()'.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/cmd.py6
-rw-r--r--Lib/distutils/command/bdist_dumb.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index c544b86..0cf88d4 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -183,7 +183,7 @@ class Command:
# Option_pairs: list of (src_option, dst_option) tuples
- src_cmd_obj = self.distribution.find_command_obj (src_cmd)
+ src_cmd_obj = self.distribution.get_command_obj (src_cmd)
src_cmd_obj.ensure_ready ()
for (src_option, dst_option) in option_pairs:
if getattr (self, dst_option) is None:
@@ -192,11 +192,11 @@ class Command:
def find_peer (self, command, create=1):
- """Wrapper around Distribution's 'find_command_obj()' method:
+ """Wrapper around Distribution's 'get_command_obj()' method:
find (create if necessary and 'create' is true) the command
object for 'command'.."""
- cmd_obj = self.distribution.find_command_obj (command, create)
+ cmd_obj = self.distribution.get_command_obj (command, create)
cmd_obj.ensure_ready ()
return cmd_obj
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index 2de2bef..eaa1927 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -63,7 +63,7 @@ class bdist_dumb (Command):
# command object that has *not* been finalized, so we can set
# options on it! (The option we set, 'root', is so that we can do
# a proper "fake install" using this install command object.)
- install = self.distribution.find_command_obj('install')
+ install = self.distribution.get_command_obj('install')
install.root = self.bdist_dir
self.announce ("installing to %s" % self.bdist_dir)