commit | a68176f803f56ead0e73ba8aac052e2886b6f2ef | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Fri Aug 09 17:41:05 2013 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Fri Aug 09 17:41:05 2013 -0700 |
tree | 1485cfa1a449c1c868ec0340e3c14d1ecbcc319e | |
parent | 2855ef7187e9b2ebd3d2b1b2240aebb277ee1bff [diff] [blame] |
wrap scapy with explicit imports pylint can't handle scapy's magical imports.
diff --git a/src/python/oftest/parse.py b/src/python/oftest/parse.py index 7963c0c..0d57443 100644 --- a/src/python/oftest/parse.py +++ b/src/python/oftest/parse.py
@@ -4,13 +4,7 @@ import sys import socket -try: - import scapy.all as scapy -except: - try: - import scapy as scapy - except: - sys.exit("Need to install scapy for packet parsing") +import packet as scapy def parse_mac(mac_str): """