<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 9:07 PM, Christopher Larson <span dir="ltr"><<a href="mailto:kergoth@gmail.com" target="_blank">kergoth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":tq" class="a3s aXjCH m1579d536b7ba2cda">From: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
<br>
`if w in self.rq.worker` when w *is* self.rq.worker doesn't make a great deal<br>
of sense, and results in this error:<br>
<br>
File ".../poky/bitbake/lib/bb/<wbr>runqueue.py", line 2372, in runQueuePipe.read():<br>
name = None<br>
> if w in self.rq.worker:<br>
name = "Worker"<br>
TypeError: unhashable type: 'dict'<br>
<br>
Most likely this was meant to be 'is' rather than 'in', but rather than<br>
checking after the fact, just include the name in the iteration, instead.<br>
<br>
While we're here, also clean up and fix the broken error message.<br>
<br>
Signed-off-by: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>></div></blockquote></div><br>Ah, no, it wasn’t meant to be is, clearly this was a missed w -> w[mc] replacement, so it was meant to be in, just with a different value. Still worth simplifying that handling a bit, regardless :)<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div></div>
</div></div>