From 2dc7d403bb024589de4c551e89980c7a2750acc7 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Wed, 9 Nov 2016 14:17:11 +0900 Subject: [PATCH] protocols/bgp/base: Add missing __next__ method This patch adds the missing __next__ method for Python 3 iterable. Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py index 713622d3..dd658aa7 100644 --- a/ryu/services/protocols/bgp/base.py +++ b/ryu/services/protocols/bgp/base.py @@ -495,6 +495,9 @@ class Sink(object): return outgoing_msg + # For Python 3 compatibility + __next__ = next + # # Source