From b4db95a00c2db10a208d2da517714a8e63ee40d0 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 7 Mar 2019 11:01:02 +1300 Subject: [PATCH] python/graph: fix python 2.6 incompatibility Signed-off-by: Douglas Bagnall --- python/samba/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/graph.py b/python/samba/graph.py index 0a0aecd6631..48372776946 100644 --- a/python/samba/graph.py +++ b/python/samba/graph.py @@ -88,7 +88,7 @@ def shorten_vertex_names(vertices, suffix=',...', aggressive=False): try: while True: c = set(x[i] for x in vlist) - if len(c) > 1 or c == {'*'}: + if len(c) > 1 or c == set('*'): break i -= 1 except IndexError: -- 2.17.1