1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

py/graph: use 2.6 compatible check for set membership

It is better this way anyway.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Mar 20 06:36:05 UTC 2019 on sn-devel-144
This commit is contained in:
Douglas Bagnall
2019-03-20 12:02:09 +13:00
committed by Andrew Bartlett
parent 68c0fc4335
commit c0aca17a4c

View File

@ -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: