Fix the default parameter in print_list
Because sort_index = 0 by default, "if sort_index is not None" doesn't make any sense. Here sort_index should be None by default, which means "donot want to sort". Change-Id: I823ab75eb7a92bdc426dd96a3d1e56f187118729 Signed-off-by: Shane Wang <shane.wang@intel.com>
This commit is contained in:
parent
892671173d
commit
075e9ca76e
@ -141,7 +141,7 @@ def pretty_choice_list(l):
|
||||
return ', '.join("'%s'" % i for i in l)
|
||||
|
||||
|
||||
def print_list(objs, fields, formatters={}, sortby_index=0):
|
||||
def print_list(objs, fields, formatters={}, sortby_index=None):
|
||||
if sortby_index is None:
|
||||
sortby = None
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user