summaryrefslogtreecommitdiff
path: root/src/distutils2/command/cmd.py
diff options
context:
space:
mode:
authorZubin Mithra <zubin.mithra@gmail.com>2010-08-13 20:22:27 +0530
committerZubin Mithra <zubin.mithra@gmail.com>2010-08-13 20:22:27 +0530
commiteee0494902d095ac70bad9f58bed3e8751422390 (patch)
treee06b44f59732d028195bfb3b54448a531991551c /src/distutils2/command/cmd.py
parent8693f3e6bfa1eb47fbb501fef414d03fc9134c34 (diff)
parent86171de49b938d105837f9cbc3daf374dd818b64 (diff)
downloaddisutils2-eee0494902d095ac70bad9f58bed3e8751422390.tar.gz
Merged with Tarek
Diffstat (limited to 'src/distutils2/command/cmd.py')
-rw-r--r--src/distutils2/command/cmd.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/distutils2/command/cmd.py b/src/distutils2/command/cmd.py
index a4e4b9b..462bbd2 100644
--- a/src/distutils2/command/cmd.py
+++ b/src/distutils2/command/cmd.py
@@ -162,13 +162,12 @@ class Command(object):
def dump_options(self, header=None, indent=""):
- from distutils2.fancy_getopt import longopt_xlate
if header is None:
header = "command options for '%s':" % self.get_command_name()
self.announce(indent + header, level=log.INFO)
indent = indent + " "
for (option, _, _) in self.user_options:
- option = option.translate(longopt_xlate)
+ option = option.replace('-', '_')
if option[-1] == "=":
option = option[:-1]
value = getattr(self, option)
@@ -331,7 +330,6 @@ class Command(object):
setattr(self, dst_option,
getattr(src_cmd_obj, src_option))
-
def get_finalized_command(self, command, create=1):
"""Wrapper around Distribution's 'get_command_obj()' method: find
(create if necessary and 'create' is true) the command object for