unit/lib/test_ofctl: Fix Flake8 [e731]

Signed-off-by: Jason Kölker <jason@koelker.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Jason Kölker 2016-03-29 19:18:33 +00:00 committed by FUJITA Tomonori
parent 3b7b2819ce
commit 3350ee045e

View File

@ -85,7 +85,9 @@ class Test_ofctl(unittest.TestCase):
# expected output <--> return of ofctl
def _remove(d, names):
f = lambda x: _remove(x, names)
def f(x):
return _remove(x, names)
if isinstance(d, list):
return list(map(f, d))
if isinstance(d, dict):