1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

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>
This commit is contained in:
Joe Guo 2018-04-10 15:42:42 +12:00 committed by Douglas Bagnall
parent 767f6e599a
commit 09081eae3d

View File

@ -235,7 +235,7 @@ def verify_graph_directed_double_ring(edges, vertices, edge_vertices):
raise GraphError("wanted double directed ring, found a leaf node"
"(%s)" % vertex)
for vertex in edge_map.keys():
for vertex in list(edge_map.keys()):
nset = edge_map[vertex]
if not nset:
continue