<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 3:19 PM, Chris Larson <span dir="ltr"><<a href="mailto:clarson@kergoth.com" target="_blank">clarson@kergoth.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Nov 28, 2012 at 1:26 PM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>- bb.utils.remove(mask)<br>
-<br>
+ # Preserve sigdata files in the stamps directory<br>
+ for name in glob.glob(mask):<br>
+ if name.find("sigdata") != -1:</div></blockquote></div><br></div>if 'sigdata' not in name:</blockquote></div><br>Erm, s/not in/in/. You get the idea. Use of 'find' only really makes sense if you need the locations within the string.<br>
-- <br>Christopher Larson<br>
</div>