diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-05-29 08:27:05 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-05-29 08:27:05 +0100 |
| commit | 3308e123ad4a0699e95e209dcd94cb0dedf7e63b (patch) | |
| tree | 826ca02338e971d67970f1dbac319131ef2194ce /openstack/common/authutils.py | |
| parent | e42276a50a3a1a2b4eb0af871154bf802cda1f00 (diff) | |
| download | oslo-3308e123ad4a0699e95e209dcd94cb0dedf7e63b.tar.gz oslo-3308e123ad4a0699e95e209dcd94cb0dedf7e63b.tar.xz oslo-3308e123ad4a0699e95e209dcd94cb0dedf7e63b.zip | |
cfg: add generators for iterating over all options
We have a few places now where we do:
for opt in self.opts:
foo(opt)
for group in self.groups:
for opt in group.opts:
foo(opt, group)
Use generators to turn this into simply:
for opt, group in self.all_opts():
foo(opt, group)
Change-Id: I7a32779c20caeb1bacb85528d7e36c3c18c6c16a
Diffstat (limited to 'openstack/common/authutils.py')
0 files changed, 0 insertions, 0 deletions
