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:29 +0100 |
commit | 8491ca52b86f22c0d9ba8e4c927262dab322969c (patch) | |
tree | 8a0f34f34569418120bc4c4121146a0a20be2dff /meta/classes/distutils-tools.bbclass | |
parent | af6d66852f1868f00d24e0ff1d9ac0c9e82434ac (diff) | |
download | poky-8491ca52b86f22c0d9ba8e4c927262dab322969c.tar.gz |
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.
(From OE-Core rev: 9d31e1e6ce07991fe360e67295311e62a55603af)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distutils-tools.bbclass')
0 files changed, 0 insertions, 0 deletions