opcodes: Replace manual loop with map
authorMichael Hanselmann <hansmi@google.com>
Thu, 29 Nov 2012 11:33:46 +0000 (12:33 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 30 Nov 2012 05:10:46 +0000 (06:10 +0100)
commit5dff65da224309ceed8bee01b204bb2ec789e80e
tree61d1374595a61c8386a149f36731035daba3c05b
parent16091a6e54918499e8c520d4dcb1d5968803a282
opcodes: Replace manual loop with map

Also remove a superfluous empty line in test file.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/opcodes.py
test/ganeti.opcodes_unittest.py