diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-03-08 18:45:12 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-03-18 20:48:48 +0900 |
commit | 4c0b438c4f549bff0ffce591c5dbcaf1fcfe51da (patch) | |
tree | f12b513263a3277a3204debbe8fee9cadfd5a79b | |
parent | 2ac7a9cf6c73997dbae38d45c02ab7f6b4097d58 (diff) |
ofconfig: use ElementTree iterator instead of getchildren
getchildren is documented to be obsolete.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/of_config/capable_switch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/of_config/capable_switch.py b/ryu/lib/of_config/capable_switch.py index b067da0f..cce48860 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 |