http://hg.python.org/cpython/rev/6fb2e5fb9082 changeset: 70549:6fb2e5fb9082 user: Tarek Ziade <tarek@ziade.org> date: Tue May 31 12:15:42 2011 +0200 summary: code cleanup in packaging.run files: Lib/packaging/run.py | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Lib/packaging/run.py b/Lib/packaging/run.py --- a/Lib/packaging/run.py +++ b/Lib/packaging/run.py @@ -351,7 +351,7 @@ number = 0 for dist in results: print('%s %s at %s' % (dist.name, dist.metadata['version'], dist.path)) - number +=1 + number += 1 print('') if number == 0: @@ -367,8 +367,9 @@ It is able to search for a specific index (specified with --index), using the simple or xmlrpc index types (with --type xmlrpc / --type simple) """ - opts = _parse_args(args[1:], '', ['simple', 'xmlrpc']) + #opts = _parse_args(args[1:], '', ['simple', 'xmlrpc']) # 1. what kind of index is requested ? (xmlrpc / simple) + raise NotImplementedError() actions = [ @@ -416,12 +417,9 @@ raise PackagingArgError(msg) self._set_logger() + self.args = args # for display options we return immediately - option_order = self.parser.get_option_order() - - self.args = args - if self.help or self.action is None: self._show_help(self.parser, display_options_=False) @@ -592,8 +590,6 @@ if isinstance(command, str): command = get_command_class(command) - name = command.get_command_name() - desc = getattr(command, 'description', '(no description available)') print('Description: %s' % desc) print('') -- Repository URL: http://hg.python.org/cpython
participants (1)
-
tarek.ziade