mirror of
https://github.com/faucetsdn/ryu.git
synced 2025-08-10 00:27:10 +02:00
'__div__' is renamed to '__truediv__' in Python 3
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
78cb838b2e
commit
22f5e67e88
@ -109,6 +109,9 @@ class Packet(object):
|
|||||||
self.add_protocol(trailer)
|
self.add_protocol(trailer)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def __truediv__(self, trailer):
|
||||||
|
return self.__div__(trailer)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.protocols)
|
return iter(self.protocols)
|
||||||
|
|
||||||
@ -143,3 +146,4 @@ def _PacketBase__div__(self, trailer):
|
|||||||
return pkt
|
return pkt
|
||||||
|
|
||||||
packet_base.PacketBase.__div__ = _PacketBase__div__
|
packet_base.PacketBase.__div__ = _PacketBase__div__
|
||||||
|
packet_base.PacketBase.__truediv__ = _PacketBase__div__
|
||||||
|
Loading…
Reference in New Issue
Block a user