clean up unused Python imports (#454)
* Remove unused python imports These changes have been auto-generated with: pip3 install isort autoflake isort -rc -sl . autoflake --remove-all-unused-imports -i -r . isort -rc -m 3 . Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> * python: remove redundant parenthesis Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
committed by
GitHub
parent
50f397b249
commit
d84179e42f
@@ -1,12 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import struct
|
||||
|
||||
from scapy.all import sniff, sendp, hexdump, get_if_list, get_if_hwaddr, bind_layers
|
||||
from scapy.all import Packet, IPOption
|
||||
from scapy.all import IP, UDP, Raw, Ether
|
||||
from scapy.layers.inet import _IPOption_HDR
|
||||
from scapy.all import Ether, IPOption, Packet, bind_layers, get_if_list, sniff
|
||||
from scapy.fields import *
|
||||
from scapy.layers.inet import _IPOption_HDR
|
||||
|
||||
|
||||
def get_if():
|
||||
ifs=get_if_list()
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import sys
|
||||
import socket
|
||||
import random
|
||||
import struct
|
||||
import sys
|
||||
|
||||
from scapy.all import sendp, send, get_if_list, get_if_hwaddr, bind_layers
|
||||
from scapy.all import Packet
|
||||
from scapy.all import Ether, IP, UDP
|
||||
from scapy.all import (
|
||||
IP,
|
||||
UDP,
|
||||
Ether,
|
||||
Packet,
|
||||
bind_layers,
|
||||
get_if_hwaddr,
|
||||
get_if_list,
|
||||
sendp
|
||||
)
|
||||
from scapy.fields import *
|
||||
import readline
|
||||
|
||||
|
||||
def get_if():
|
||||
ifs=get_if_list()
|
||||
|
||||
Reference in New Issue
Block a user