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:
Shane Wang 2013-05-14 11:21:08 +08:00
parent 892671173d
commit 075e9ca76e
1 changed files with 1 additions and 1 deletions

View File

@ -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: