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:
Radostin Stoyanov authored and GitHub committed 2022-02-24 11:31:53 -05:00 Unverified
1 parent 50f397b249
commit d84179e42f
36 files changed
+176 -170

No files matched your search

+11 -11
View File
@@ -1,17 +1,17 @@
#!/usr/bin/env python3
import argparse
import sys
import socket
import random
import struct
import re
from scapy.all import sendp, send, srp1
from scapy.all import Packet, hexdump
from scapy.all import Ether, StrFixedLenField, XByteField, IntField
from scapy.all import bind_layers
import readline
from scapy.all import (
Ether,
IntField,
Packet,
StrFixedLenField,
XByteField,
bind_layers,
srp1
)
class P4calc(Packet):
name = "P4calc"
@@ -84,7 +84,7 @@ def main():
if resp:
p4calc=resp[P4calc]
if p4calc:
print((p4calc.result))
print(p4calc.result)
else:
print("cannot find P4calc header in the packet")
else: