mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
python/samba: enclose map.values with list (py2/py3)
Fix errors in samba.tests.samba_tool.visualize_drs that with python 3 will generate exception with messages something like 'can't iterate dict_values' Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
09c2b71e47
commit
f8ecffb61a
@ -84,7 +84,7 @@ def shorten_vertex_names(vertices, suffix=',...', aggressive=False):
|
||||
# walk backwards along all the strings until we meet a character
|
||||
# that is not shared by all.
|
||||
i = -1
|
||||
vlist = vmap.values()
|
||||
vlist = list(vmap.values())
|
||||
try:
|
||||
while True:
|
||||
c = set(x[i] for x in vlist)
|
||||
|
Loading…
x
Reference in New Issue
Block a user