diff options
author | IWAMOTO Toshihiro <iwamoto@valinux.co.jp> | 2015-10-16 14:42:34 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-22 05:50:53 +0900 |
commit | d5bb8d4603e80e57b00b4bbb4646057a3c9700ae (patch) | |
tree | 85c743e2d44e6c1ca5c0e34919fa0ff2cb51bf07 | |
parent | 604b16c565e7282ecfc41dbc5754eacbc7ece0a9 (diff) |
Python3: use dict instead of types.DictType
Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/bgp/operator/views/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ryu/services/protocols/bgp/operator/views/base.py b/ryu/services/protocols/bgp/operator/views/base.py index a528f0ff..185c8802 100644 --- a/ryu/services/protocols/bgp/operator/views/base.py +++ b/ryu/services/protocols/bgp/operator/views/base.py @@ -9,7 +9,6 @@ public. They will stay private and only "view" will access them (think friend-class from C++) """ import logging -import types from ryu.services.protocols.bgp.operator.views import fields @@ -256,7 +255,7 @@ def _flatten(l, max_level=10): :return: flattened iterator """ if max_level >= 0: - _iter = l.values() if isinstance(l, types.DictType) else l + _iter = l.values() if isinstance(l, dict) else l for el in _iter: if isinstance(el, RdyToFlattenCollection): for sub in _flatten(el, max_level=max_level - 1): |