]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bb.data_smart: use iter() for __len__
authorChristopher Larson <chris_larson@mentor.com>
Sat, 30 Apr 2016 19:43:54 +0000 (12:43 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:18:06 +0000 (10:18 +0100)
commitb492836e08745e04bd9ba2fb0b56a680a5fdce79
treed02907836fe074eb6fbbc41ef23b2b937c70d52d
parenta3e5d9337f5400aab13df63f261e750178f8a661
bb.data_smart: use iter() for __len__

It seems the frozenset constructor in pypy runs len(), so we can't pass the
DataSmart instance directly to it, instead pass the iterator. Fixes pypy
support.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/data_smart.py