diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-16 13:40:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-20 15:21:33 +0000 |
commit | 9ecdbc377c6ab6848afb0a378c5804918951f6b7 (patch) | |
tree | 6a399868e8e832298e94bd8a03eaf0b7728b7950 /.gitignore | |
parent | dab638e150fb2af56f54f0752383965b016f4960 (diff) | |
download | poky-9ecdbc377c6ab6848afb0a378c5804918951f6b7.tar.gz |
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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions