Skip to content

Commit 48a15ee

Browse files
committed
fix bug
1 parent e6ba29d commit 48a15ee

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scapy/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,8 +2479,7 @@ def __init__(self, sock, pkt, interval=0.5):
24792479
interval: interval between two packets
24802480
"""
24812481
if not isinstance(pkt, list):
2482-
pkt = cast(Packet, pkt)
2483-
self._pkts = [pkt] # type: _UniPacketList
2482+
self._pkts = [cast("Packet", pkt)] # type: _UniPacketList
24842483
else:
24852484
self._pkts = pkt
24862485
self._socket = sock

0 commit comments

Comments
 (0)