<div dir="ltr"><div dir="ltr">On Wed, 4 Sep 2019 at 14:55, Quentin Schulz <<a href="mailto:quentin.schulz@streamunlimited.com">quentin.schulz@streamunlimited.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So we just need to invert the logic actually.<br>
<br>
matched = False<br>
for pattern in private_libs:<br>
if fnmatch.fnmatch(this_soname, pattern)]) == 0:<br>
matched = True<br>
break<br>
<br>
if not matched:<br>
sonames.add(prov)<br></blockquote><div><br></div><div>I think you are looking for the "for...else" feature in Python :) Still, the original code is not adding any lines at all while yours adds eight so I'd just keep the patch as it is.<br></div><div><br></div><div>Alex<br></div></div></div>