Skip to content

Commit 58af5c3

Browse files
committed
Fix flake8 errors: trailing whitespace and inline comment formatting
1 parent 5b420bf commit 58af5c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scapy/layers/inet6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,16 +485,16 @@ def answers(self, other):
485485
# Linux's sk_buff considers the IPv6 Payload
486486
# to be either TCP, UDP or ICMP. It does not
487487
# consider Extension Headers to be the payload.
488-
# Following similar architecture, this small
488+
# Following similar architecture, this small
489489
# modification lets packet flow with Destination
490490
# Option on both, request and response packets
491491
# be captured as well.
492492
if UDP in self and UDP in other:
493493
return self[UDP].answers(other[UDP])
494494
elif TCP in self and TCP in other:
495-
return self[TCP].answers(other[TCP])
495+
return self[TCP].answers(other[TCP])
496496
else:
497-
return self.payload.answers(other.payload.payload) # Previous Implementation
497+
return self.payload.answers(other.payload.payload)
498498
elif self.nh == 60 and isinstance(self.payload, IPv6ExtHdrDestOpt): # BU in reply to BRR, for instance # noqa: E501
499499
return self.payload.payload.answers(other.payload)
500500
else:

0 commit comments

Comments
 (0)