getchildren is documented to be obsolete.
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/lib/of_config/capable_switch.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ryu/lib/of_config/capable_switch.py
b/ryu/lib/of_config/capable_switch.py
index b067da0..cce4886 100644
--- a/ryu/lib/of_config/capable_switch.py
+++ b/ryu/lib/of_config/capable_switch.py
@@ -67,7 +67,7 @@ class OFCapableSwitch(object):
def _find_capable_switch(self, tree):
capable_switch = None
- for element in tree.getchildren():
+ for element in tree:
ns, tag = get_ns_tag(element.tag)
if tag != ofc_consts.CAPABLE_SWITCH:
continue
--
1.8.0.1
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel