X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fcommon.py;h=4d019f3764608ccc16937e289be15edc82c7da82;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=f27098db90a2d344cdfd5719527b6741bc5c5dc7;hpb=8e558be62ca1e048cedb76d6036d1acbfa827bd4;p=sfa.git diff --git a/sfa/client/common.py b/sfa/client/common.py index f27098db..4d019f37 100644 --- a/sfa/client/common.py +++ b/sfa/client/common.py @@ -1,6 +1,6 @@ # a few utilities common to sfi and sfaadmin -from __future__ import print_function + def optparse_listvalue_callback(option, opt, value, parser): @@ -106,7 +106,7 @@ def terminal_render(records, options): if type not in grouped_by_type: grouped_by_type[type] = [] grouped_by_type[type].append(record) - group_types = grouped_by_type.keys() + group_types = list(grouped_by_type.keys()) group_types.sort() for type in group_types: group = grouped_by_type[type]