]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Hyper-V: Remove useless use of "else" clause on for loop
authorAngus Lees <gus@inodes.org>
Thu, 21 Aug 2014 04:08:07 +0000 (14:08 +1000)
committerAngus Lees <gus@inodes.org>
Tue, 21 Oct 2014 22:38:23 +0000 (09:38 +1100)
commit105ce10838ccf20a41ece32997e0cf8ffb1de483
tree0383647a7797f0fe5c9cd623938a6b6396403231
parent1aaa8b34466b0567c6a5ea0b607f1ac324ee5dfa
Hyper-V: Remove useless use of "else" clause on for loop

"else" on for loops is only important if the loop contains a "break"
statement.  Without a "break", the else block is _always_ executed and
it is clearer just to omit "else".

This change also enables the corresponding pylint warning, now that the
only offending case has been fixed.

Change-Id: Ibe8761cb40a7d2d564aa718d62c9f383b5ad711e
.pylintrc
neutron/plugins/ml2/drivers/mech_hyperv.py