mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-25 02:21:45 +01:00
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:
parent
3b7b2819ce
commit
3350ee045e
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user