]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: fetch/git: use enumerate for ud.names
authorChristopher Larson <chris_larson@mentor.com>
Tue, 21 Mar 2017 18:41:01 +0000 (11:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Mar 2017 11:35:23 +0000 (11:35 +0000)
commitb079a2da3635f45479c55c3282b51a654fdea9af
tree9e27a0eac7b78c9156d6fe552affcdfde6a3fe2b
parent9a6f6366799ac53168f3398cb5c8d33f0da4f870
bitbake: fetch/git: use enumerate for ud.names

list.index() isn't a particularly efficient operation, so keep track of our
position via enumerate() instead, which is more pythonic as well.

(Bitbake rev: dec6e90a4d27ee335e9c78aeebd277098fec94d1)

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