From c0aca17a4c9ec06f0127d5c972f3fa979a87a77f 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 Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Mar 20 06:36:05 UTC 2019 on sn-devel-144 --- 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.34.1