mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 18:11:24 +01:00
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>
This commit is contained in:
parent
0f79e71fdc
commit
daa77e73c7
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user