mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
More 2to3 fixes in the Tools directory. Fixes #2893.
This commit is contained in:
parent
acbca71ea7
commit
bf82e374ee
38 changed files with 1999 additions and 2032 deletions
|
@ -537,9 +537,9 @@ class Application:
|
|||
if not options:
|
||||
print(' None')
|
||||
return
|
||||
long = filter(lambda x: x.prefix == '--', options)
|
||||
short = filter(lambda x: x.prefix == '-', options)
|
||||
items = short + long
|
||||
int = [x for x in options if x.prefix == '--']
|
||||
short = [x for x in options if x.prefix == '-']
|
||||
items = short + int
|
||||
for o in options:
|
||||
print(' ',o)
|
||||
print()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue