neutron-lbaas/neutron
Angus Lees 35b6d164d6 Enable undefined-loop-variable pylint check
This required a trivial refactor of two existing cases in the codebase.

These two cases were perfectly correct, but the check uncovered a 3rd
case which was a real bug (fixed separately).  The new versions also
make it clear that if the loop fails to break early then the 'result' is
None (and thus an error) and not simply the last element.  On balance,
it's probably worth enforcing this small inconvenience to coding style.

Change-Id: I780a95241f1454c6886d91f980eb9ada7678a119
Related-Bug: #1362466
2014-11-28 11:40:41 +11:00
..
db Migrate to oslo.utils 2014-11-26 10:31:03 +01:00
services Enable undefined-loop-variable pylint check 2014-11-28 11:40:41 +11:00
tests/unit Merge "Validate loadbalancing method when updating a pool" 2014-11-23 21:07:11 +00:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00