Use 'not in' for membership test

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
Povilas Kanapickas 2024-03-08 23:46:21 +02:00
parent 36139fb282
commit 59a1fa3942

View File

@ -1100,7 +1100,7 @@ def flat_deps(services, with_extends=False):
for c in links_ls:
if ":" in c:
dep_name, dep_alias = c.split(":")
if not "_aliases" in services[dep_name]:
if "_aliases" not in services[dep_name]:
services[dep_name]["_aliases"] = set()
services[dep_name]["_aliases"].add(dep_alias)
for name, srv in services.items():