Signed-off-by: IWAMOTO Toshihiro <[email protected]>
---
 ryu/services/protocols/bgp/operator/views/base.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ryu/services/protocols/bgp/operator/views/base.py 
b/ryu/services/protocols/bgp/operator/views/base.py
index a528f0f..185c880 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):
-- 
2.1.4


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to