]> granicus.if.org Git - python/commitdiff
Use 'get_command_obj()' instead of 'find_command_obj()'.
authorGreg Ward <gward@python.net>
Tue, 23 May 2000 01:55:01 +0000 (01:55 +0000)
committerGreg Ward <gward@python.net>
Tue, 23 May 2000 01:55:01 +0000 (01:55 +0000)
Lib/distutils/cmd.py
Lib/distutils/command/bdist_dumb.py

index c544b86440576f814d27c06bb6bbfa82f7a80f2f..0cf88d41f5e09a466a49eeda672bc4ba0697fe17 100644 (file)
@@ -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
 
index 2de2befc145a104a87ddce24913affb25e9a43fc..eaa192732b5eebc9223bb72ec0940c7798582ef6 100644 (file)
@@ -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)