From 3a4bdd3296b0a7f2e74c4535d333bb0fcc8c2090 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Tue, 9 Apr 2013 11:01:17 +0900 Subject: lib/packet/lldp.py: pylint > W: 78,0:LLDPBasicTLV.__init__: Unused argument 'args' > W: 78,0:LLDPBasicTLV.__init__: Unused argument 'kwargs' > W:109,4:lldp.__init__: __init__ method from base class 'PacketBase' is not called Cc: "can." Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/lldp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/lib/packet/lldp.py b/ryu/lib/packet/lldp.py index d913c305..f343359d 100644 --- a/ryu/lib/packet/lldp.py +++ b/ryu/lib/packet/lldp.py @@ -75,7 +75,8 @@ class LLDPBasicTLV(object): _LEN_MAX = 511 tlv_type = None - def __init__(self, buf=None, *args, **kwargs): + def __init__(self, buf=None, *_args, **_kwargs): + super(LLDPBasicTLV, self).__init__() if buf: (self.typelen, ) = struct.unpack( LLDP_TLV_TYPELEN_STR, buf[:LLDP_TLV_SIZE]) @@ -108,6 +109,7 @@ class lldp(packet_base.PacketBase): tlvs = [] def __init__(self, tlvs): + super(lldp, self).__init__() self.tlvs = tlvs length = 0 for tlv in tlvs: -- cgit v1.2.3