diff options
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/python3/scapy')
-rw-r--r-- | scripts/external_libs/scapy-2.3.1/python3/scapy/packet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/external_libs/scapy-2.3.1/python3/scapy/packet.py b/scripts/external_libs/scapy-2.3.1/python3/scapy/packet.py index 8401e0cf..036e0ef9 100644 --- a/scripts/external_libs/scapy-2.3.1/python3/scapy/packet.py +++ b/scripts/external_libs/scapy-2.3.1/python3/scapy/packet.py @@ -327,7 +327,7 @@ class Packet(BasePacket, metaclass = Packet_metaclass): def __rmul__(self,other): return self.__mul__(other) - def __nonzero__(self): + def __bool__(self): return True def __len__(self): @@ -1149,7 +1149,7 @@ class NoPayload(Packet): return "" def __str__(self): return "" - def __nonzero__(self): + def __bool__(self): return False def do_build(self,result): return b"" |