From 3350ee045ec6861b6871bafd636f0378667cf083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20K=C3=B6lker?= Date: Tue, 29 Mar 2016 19:18:33 +0000 Subject: [PATCH] unit/lib/test_ofctl: Fix Flake8 [e731] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jason Kölker Signed-off-by: FUJITA Tomonori --- ryu/tests/unit/lib/test_ofctl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):