Mailing List Archive

distutils2: #13399 - some tweaking
http://hg.python.org/distutils2/rev/fcfa635db609
changeset: 1338:fcfa635db609
parent: 1328:478700dd4f6c
user: Patrice Gauthier <patgauth@gmail.com>
date: Mon May 14 15:43:42 2012 -0400
summary:
#13399 - some tweaking

files:
distutils2/run.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/distutils2/run.py b/distutils2/run.py
--- a/distutils2/run.py
+++ b/distutils2/run.py
@@ -436,6 +436,7 @@
# Pull the current command from the head of the command line
command = args[0]
if not command_re.match(command):
+ self.show_help()
raise SystemExit("invalid command name %r" % (command,))
self.commands.append(command)

@@ -537,7 +538,7 @@
self._show_help(self.parser)

def exit_with_error_msg(self, msg):
- sys.exit('error: ' + msg.__str__())
+ sys.exit('error: %s ' % msg)

def print_usage(self, parser):
parser.set_option_table(global_options)

--
Repository URL: http://hg.python.org/distutils2