Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

distutils2: #13399 - some tweaking

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

May 15, 2012, 10:07 PM

Post #1 of 1 (41 views)
Permalink
distutils2: #13399 - some tweaking

http://hg.python.org/distutils2/rev/fcfa635db609
changeset: 1338:fcfa635db609
parent: 1328:478700dd4f6c
user: Patrice Gauthier <patgauth [at] gmail>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.