diff options
author | Jason Kölker <jason@koelker.net> | 2016-03-29 19:18:33 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-30 08:08:28 +0900 |
commit | 3350ee045ec6861b6871bafd636f0378667cf083 (patch) | |
tree | b205a32320ba8e9c65f7174db8d9f8a0e9043101 | |
parent | 3b7b2819cec72917b46d04efba66015cf669d126 (diff) |
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>
-rw-r--r-- | ryu/tests/unit/lib/test_ofctl.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ryu/tests/unit/lib/test_ofctl.py b/ryu/tests/unit/lib/test_ofctl.py index 03155a87..3102e1f0 100644 --- a/ryu/tests/unit/lib/test_ofctl.py +++ b/ryu/tests/unit/lib/test_ofctl.py @@ -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): |