Linting
This commit is contained in:
@ -219,9 +219,10 @@ class NeighbourTLV(TLV):
|
||||
self.port.to_bytes(2, sys.byteorder)
|
||||
|
||||
def handle(self, squirrel: Any, sender: Any) -> None:
|
||||
if squirrel.address == str(self.ip_address) and squirrel.port == self.port :
|
||||
#This case should never happen (and in our protocol it is not possible), but we include this test as a security measure.
|
||||
return
|
||||
if squirrel.address == str(self.ip_address) and squirrel.port == self.port:
|
||||
# This case should never happen (and in our protocol it is not possible),
|
||||
# but we include this test as a security measure.
|
||||
return
|
||||
if not (str(self.ip_address), self.port) in squirrel.activehazelnuts \
|
||||
and not (str(self.ip_address), self.port) in squirrel.potentialhazelnuts:
|
||||
squirrel.potentialhazelnuts[(str(self.ip_address), self.port)] = \
|
||||
|
Reference in New Issue
Block a user