diff options
author | Jason Kölker <jason@koelker.net> | 2016-03-29 19:18:27 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-30 08:07:38 +0900 |
commit | daa77e73c7370ea22fb1ff8b3d193c551dbbf405 (patch) | |
tree | 088d8b7f243fd44a3696ccf129be86d9ec12efbd | |
parent | 0f79e71fdc2c6bb6ab978083a15e3918bd011b2a (diff) |
lib/ofctl_v1_4: Flake8 Fixes
Signed-off-by: Jason Kölker <jason@koelker.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/ofctl_v1_4.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ryu/lib/ofctl_v1_4.py b/ryu/lib/ofctl_v1_4.py index faad3e04..515498d7 100644 --- a/ryu/lib/ofctl_v1_4.py +++ b/ryu/lib/ofctl_v1_4.py @@ -19,7 +19,6 @@ import netaddr import six from ryu.ofproto import ether -from ryu.ofproto import inet from ryu.ofproto import ofproto_v1_4 from ryu.ofproto import ofproto_v1_4_parser from ryu.lib import hub @@ -165,7 +164,9 @@ def action_to_str(act): 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): |