diff options
author | Christopher Larson <chris_larson@mentor.com> | 2014-08-25 15:57:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-27 12:12:04 +0100 |
commit | 9d31e1e6ce07991fe360e67295311e62a55603af (patch) | |
tree | c9da2a7c7d313791029a586d9548c6966356f40e /meta/classes/binconfig.bbclass | |
parent | c8afcb9cab9d610892db9c41b29685583f3b5773 (diff) | |
download | openembedded-core-9d31e1e6ce07991fe360e67295311e62a55603af.tar.gz openembedded-core-9d31e1e6ce07991fe360e67295311e62a55603af.tar.bz2 openembedded-core-9d31e1e6ce07991fe360e67295311e62a55603af.zip |
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>
Diffstat (limited to 'meta/classes/binconfig.bbclass')
0 files changed, 0 insertions, 0 deletions