kcc/kcc_utils: convert dict.keys to list
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 10 Apr 2018 03:42:42 +0000 (15:42 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:13 +0000 (07:27 +0200)
commit09081eae3d821352786dfb38630ae10e6072040e
tree8be8d0dda5b50a62249de01e924d4cef9d37e37b
parent767f6e599af81f7b2be42981d997c3c02f7ac70c
kcc/kcc_utils: convert dict.keys to list

In py3, `dict.keys()` will return a iterator not a list.
Convert it to list to support both py2 and py3.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/kcc/graph_utils.py