All subclasses define them as
parser(cls, buf) and serialize(self, payload, prev)
Not parser(cls), serialize(self).

pylint also complains like
> W: 50,4:ipv4.parser: Arguments number differs from overridden method
> W: 65,4:ipv4.serialize: Arguments number differs from overridden method

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/lib/packet/packet_base.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py
index 437678b..aa38eb0 100644
--- a/ryu/lib/packet/packet_base.py
+++ b/ryu/lib/packet/packet_base.py
@@ -31,8 +31,8 @@ class PacketBase(object):
         self.protocol_name = self.__class__.__name__
 
     @classmethod
-    def parser(cls):
+    def parser(cls, buf):
         pass
 
-    def serialize(self):
+    def serialize(self, payload, prev):
         pass
-- 
1.7.10.4


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to