This patch adds the missing __next__ method for Python 3 iterable.
Signed-off-by: IWASE Yusuke <[email protected]>
---
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 713622d..dd658aa 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
--
2.7.4
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel