diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-03-20 12:02:09 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-20 06:36:05 +0000 |
commit | c0aca17a4c9ec06f0127d5c972f3fa979a87a77f (patch) | |
tree | f4f92ed7edac17206bdd91955ba655b9cd1c49e8 /python | |
parent | 68c0fc4335d0c3c526a38481538a33290be6d58a (diff) | |
download | samba-c0aca17a4c9ec06f0127d5c972f3fa979a87a77f.tar.gz |
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
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |