<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 9, 2017 at 11:41 AM, Denys Dmytriyenko <span dir="ltr">&lt;<a href="mailto:denis@denix.org" target="_blank">denis@denix.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1i7" class="a3s aXjCH m15c8e2a2eea5f7e5">+    ubootconfig = (d.getVar(&#39;UBOOT_CONFIG&#39;) or &quot;&quot;).split()<br>
<br>
-    if not ubootmachine and not ubootconfigflags:<br>
+    if not ubootmachine and len(ubootconfig) == 0:</div></blockquote></div><br>There’s no need for len() here, just `if not ubootmachine and not ubootconfig:` should do, since a string is falsy when it’s empty.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Senior Software Engineer, Mentor Graphics</div></div></div></div>
</div></div>