Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f26975f0
Commit
f26975f0
authored
May 31, 2011
by
Tarek Ziade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup in packaging.run
parent
b865faeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
Lib/packaging/run.py
Lib/packaging/run.py
+4
-8
No files found.
Lib/packaging/run.py
View file @
f26975f0
...
...
@@ -351,7 +351,7 @@ def _list(dispatcher, args, **kw):
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 @@ def _search(dispatcher, args, **kw):
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 @@ class Dispatcher:
raise
PackagingArgError
(
msg
)
self
.
_set_logger
()
# for display options we return immediately
option_order
=
self
.
parser
.
get_option_order
()
self
.
args
=
args
# for display options we return immediately
if
self
.
help
or
self
.
action
is
None
:
self
.
_show_help
(
self
.
parser
,
display_options_
=
False
)
...
...
@@ -592,8 +590,6 @@ class Dispatcher:
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
(
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment