Skip to content

Remove some unnecessary imports of Scapy module#5128

Merged
jafingerhut merged 3 commits into
p4lang:mainfrom
jafingerhut:remove-unnecessary-uses-of-scapy-v1
Feb 18, 2025
Merged

Remove some unnecessary imports of Scapy module#5128
jafingerhut merged 3 commits into
p4lang:mainfrom
jafingerhut:remove-unnecessary-uses-of-scapy-v1

Conversation

@jafingerhut

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>

from bmv2stf import Options, RunBMV2
from scapy.layers.all import *
from scapy.utils import *

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried to find any mentions of Scapy names from this file, but have not found any. Unfortunately it is difficult to be 100% certain with from <module> import *, because they could be anywhere in the file without having the module name in front of them.

In the git commit history for run-bmv2-test.py, I found that back in 2016 there were some uses of rdpcap and Ether symbols from scapy in this file, but al of those were removed by 2016 or 2017, thus it appears that these import statements are vestigial.

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
@jafingerhut jafingerhut requested a review from fruffy February 17, 2025 13:59
@fruffy fruffy added the infrastructure Topics related to code style and build and test infrastructure. label Feb 18, 2025
@jafingerhut jafingerhut added this pull request to the merge queue Feb 18, 2025
Merged via the queue into p4lang:main with commit eb0468a Feb 18, 2025
@jafingerhut jafingerhut deleted the remove-unnecessary-uses-of-scapy-v1 branch February 18, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Topics related to code style and build and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants