summaryrefslogtreecommitdiff
path: root/distutils2/command/cmd.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-11-12 05:08:01 +0100
committer?ric Araujo <merwok@netwok.org>2011-11-12 05:08:01 +0100
commit123c3e80926d8ae17cb9c21b5b85db821f671563 (patch)
tree85f25323ad48fa8a2dce043e0719adc025be5ee3 /distutils2/command/cmd.py
parent37cc8079333cd92ae07a969acbcd8978c14b776a (diff)
downloaddisutils2-123c3e80926d8ae17cb9c21b5b85db821f671563.tar.gz
Undo potentially confusing name change.
This method was named reinitialize_command in distutils and accompanied by a comment suggesting to change it to get_reinitialized_command. Following that, I did the change for distutils2, but it proved confusing: The Distribution object has an internal cache of command objects, to make sure only one instance is ever used, and the name get_reinitialized_command could suggest that the object returned was independent of that cache, which it was not. I?m reverting the name change to make code clearer.
Diffstat (limited to 'distutils2/command/cmd.py')
-rw-r--r--distutils2/command/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/distutils2/command/cmd.py b/distutils2/command/cmd.py
index b1bb6f2..5992187 100644
--- a/distutils2/command/cmd.py
+++ b/distutils2/command/cmd.py
@@ -318,8 +318,8 @@ class Command(object):
cmd_obj.ensure_finalized()
return cmd_obj
- def get_reinitialized_command(self, command, reinit_subcommands=False):
- return self.distribution.get_reinitialized_command(
+ def reinitialize_command(self, command, reinit_subcommands=False):
+ return self.distribution.reinitialize_command(
command, reinit_subcommands)
def run_command(self, command):