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:
committed by
Andrew Bartlett
parent
68c0fc4335
commit
c0aca17a4c
@ -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:
|
||||
|
Reference in New Issue
Block a user