]> code.ossystems Code Review - openembedded-core.git/commit
sanity: refactor mirrors checks to be more pythonic
authorChristopher Larson <chris_larson@mentor.com>
Mon, 25 Aug 2014 22:57:44 +0000 (15:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Aug 2014 11:12:04 +0000 (12:12 +0100)
commit9d31e1e6ce07991fe360e67295311e62a55603af
treec9da2a7c7d313791029a586d9548c6966356f40e
parentc8afcb9cab9d610892db9c41b29685583f3b5773
sanity: refactor mirrors checks to be more pythonic

- Use clearer variable names
- Use variable unpacking to reference elements by name rather than index
- Sacrifice a small amount of time (iterate over protocols twice per entry
  rather than once) for clarity: use readable generator expressions with any()
  rather than maintaining state.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass