summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/packet/packet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py
index a461eeea..da9c412d 100644
--- a/ryu/lib/packet/packet.py
+++ b/ryu/lib/packet/packet.py
@@ -42,7 +42,7 @@ class Packet(object):
self.data = bytearray()
r = self.protocols[::-1]
for i, p in enumerate(r):
- if p.__class__.__bases__[0] == packet_base.PacketBase:
+ if isinstance(p, packet_base.PacketBase):
if i == len(r) - 1:
prev = None
else: