python/samba: enclose map.values with list (py2/py3)
[samba.git] / python / samba / graph.py
index 6290ebeeb10fbba52787f114fe63b48e9a9026a8..e80a88206672dffec8891f0009b1db791daf935a 100644 (file)
@@ -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)