From cdd23df2ff472310ba3b2083ef447866057b06bd Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 20 Mar 2019 12:02:09 +1300 Subject: [PATCH] py/graph: use 2.6 compatible check for set membership It is better this way anyway. 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..c8d5f9230d0 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 '*' in c: break i -= 1 except IndexError: -- 2.17.1