---
 ryu/lib/packet/packet.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py
index 2042dd7..e25db3d 100644
--- a/ryu/lib/packet/packet.py
+++ b/ryu/lib/packet/packet.py
@@ -109,6 +109,9 @@ class Packet(object):
         self.add_protocol(trailer)
         return self
 
+    def __truediv__(self, trailer):
+        return self.__div__(trailer)
+
     def __iter__(self):
         return iter(self.protocols)
 
@@ -143,3 +146,4 @@ def _PacketBase__div__(self, trailer):
     return pkt
 
 packet_base.PacketBase.__div__ = _PacketBase__div__
+packet_base.PacketBase.__truediv__ = _PacketBase__div__
-- 
2.3.2 (Apple Git-55)


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to