summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/command/bdist.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-11-06 05:54:05 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-11-06 05:54:05 (GMT)
commita963e0d917d71079910d31b69a1cc8a06b74edbe (patch)
tree25033dfe66a23fc0e41105f81c3aa91c6215675c /Lib/packaging/command/bdist.py
parent4e377f215d1b4ec7a7a7268a1d4cbd867a45a9ee (diff)
downloadcpython-a963e0d917d71079910d31b69a1cc8a06b74edbe.zip
cpython-a963e0d917d71079910d31b69a1cc8a06b74edbe.tar.gz
cpython-a963e0d917d71079910d31b69a1cc8a06b74edbe.tar.bz2
Undo potentially confusing name change in packaging.
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 'Lib/packaging/command/bdist.py')
-rw-r--r--Lib/packaging/command/bdist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/command/bdist.py b/Lib/packaging/command/bdist.py
index b9d550b..e390cdc 100644
--- a/Lib/packaging/command/bdist.py
+++ b/Lib/packaging/command/bdist.py
@@ -126,7 +126,7 @@ class bdist(Command):
# Reinitialize and run each command.
for i in range(len(self.formats)):
cmd_name = commands[i]
- sub_cmd = self.get_reinitialized_command(cmd_name)
+ sub_cmd = self.reinitialize_command(cmd_name)
sub_cmd.format = self.formats[i]
# passing the owner and group names for tar archiving