summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-04-09 11:01:17 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-04-11 04:24:43 +0900
commit3a4bdd3296b0a7f2e74c4535d333bb0fcc8c2090 (patch)
tree9f6ca5ec7faf028d61ee5c0dc5c5f7447221e17f
parent521fbcf0006967947c42497d2f7a22d44c7b38e1 (diff)
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." <can@canx.me> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/lldp.py4
1 files changed, 3 insertions, 1 deletions
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: