Commit e024a10c authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes pylint errors

parent 45f3489c
Pipeline #5012 passed with stage
in 1 minute and 38 seconds
...@@ -439,7 +439,6 @@ class Node: ...@@ -439,7 +439,6 @@ class Node:
def send_failure(self, packet, target): def send_failure(self, packet, target):
"""Call when a send fails.""" """Call when a send fails."""
# pylint: disable=unused-argument # pylint: disable=unused-argument
pass
def packet_expiry(self, packet): def packet_expiry(self, packet):
"""Call when a packet expires.""" """Call when a packet expires."""
...@@ -540,7 +539,6 @@ class FloodingNode(Node): ...@@ -540,7 +539,6 @@ class FloodingNode(Node):
Do nothing, overrides default of removing from buffer. Do nothing, overrides default of removing from buffer.
""" """
pass
Contact = namedtuple('Contact', ['time', 'a', 'b', 'join']) Contact = namedtuple('Contact', ['time', 'a', 'b', 'join'])
...@@ -611,7 +609,7 @@ class CSVTrace(Trace): ...@@ -611,7 +609,7 @@ class CSVTrace(Trace):
with open(self.path) as csv_file: with open(self.path) as csv_file:
csv_file = csv.reader(csv_file) csv_file = csv.reader(csv_file)
# skip header # skip header
next(csv_file) next(csv_file) # pylint: disable=stop-iteration-return
for row in csv_file: for row in csv_file:
yield self.create_contact(*map(int, row)) yield self.create_contact(*map(int, row))
......
...@@ -406,14 +406,10 @@ class BubbleNode(CommunityNode): ...@@ -406,14 +406,10 @@ class BubbleNode(CommunityNode):
class BubbleKCliqueNode(KCliqueNode, BubbleNode): class BubbleKCliqueNode(KCliqueNode, BubbleNode):
"""Bubble node with k-clique community detection.""" """Bubble node with k-clique community detection."""
pass
class BubbleLouvainNode(LouvainNode, BubbleNode): class BubbleLouvainNode(LouvainNode, BubbleNode):
"""Bubble node with louvain community detection.""" """Bubble node with louvain community detection."""
pass
class HCBFNode(CommunityNode): class HCBFNode(CommunityNode):
"""Node with Hybrid Community Based forwarding.""" """Node with Hybrid Community Based forwarding."""
...@@ -463,10 +459,6 @@ class HCBFNode(CommunityNode): ...@@ -463,10 +459,6 @@ class HCBFNode(CommunityNode):
class HCBFKCliqueNode(KCliqueNode, HCBFNode): class HCBFKCliqueNode(KCliqueNode, HCBFNode):
"""HCBF node with k-clique community detection.""" """HCBF node with k-clique community detection."""
pass
class HCBFLouvainNode(LouvainNode, HCBFNode): class HCBFLouvainNode(LouvainNode, HCBFNode):
"""HCBF node with louvain community detection.""" """HCBF node with louvain community detection."""
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment