bdev: Add a TODO and a pylint silence
authorIustin Pop <iustin@google.com>
Tue, 29 Dec 2009 18:01:33 +0000 (19:01 +0100)
committerIustin Pop <iustin@google.com>
Mon, 4 Jan 2010 09:17:43 +0000 (10:17 +0100)
commit527a15ac55635978b18e317368e3080b08a99b03
tree3ed522f2a70f1bb04ad1f8831e8d40317ac78a12
parentc9ca81c9fd12b9eec8ecf7c280eb7382e623b060
bdev: Add a TODO and a pylint silence

A piece of old code in bdev.py uses a for loop over a single variable
because we can 'break' out of the loop or exit on the 'else' path. This
is not a nice usage of the for loop, it should be converted to a
standard if...elif...else structure.

In the meantime we silence a warning from pylint (it is actually
invalid, IMHO) and add a TODO.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
lib/bdev.py