Hob: change the code style to enumerate a list in a for-loop
authorShane Wang <shane.wang@intel.com>
Fri, 16 Mar 2012 05:40:41 +0000 (13:40 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Mar 2012 15:21:33 +0000 (15:21 +0000)
commit259630c3d3c211dc1ec844bf0bb892026f432948
treed0a8357a3eb4dc0f817c5a7859181bf176a8b849
parent8e677a873a41bd1f386f790c40021ceaeff11cef
Hob: change the code style to enumerate a list in a for-loop

We use the more common style to enumerate a list in a for-loop
(http://docs.python.org/library/functions.html#enumerate), that is:

try to use
for item in mylist,

and try to use
for i, item in enumerate(list)
rather than
for i in range(len(mylist))

(From Poky rev: 33c21bc60bd1542f81d33c328f116dec424728cd)

(Bitbake rev: 9b168239a5d9693573438eb6514938b81de85af3)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hobwidget.py
bitbake/lib/bb/ui/crumbs/packageselectionpage.py
bitbake/lib/bb/ui/crumbs/recipeselectionpage.py