commit | d2ca1031708f717da7e8db5b05a87972a0a429a9 | [log] [tgz] |
---|---|---|
author | Dan Talayco <dtalayco@stanford.edu> | Wed Mar 10 14:40:26 2010 -0800 |
committer | Dan Talayco <dtalayco@stanford.edu> | Wed Mar 10 14:40:26 2010 -0800 |
tree | 6be35dcf9ae05fd5cbde36552cb86cf6a266a21a | |
parent | 0db53eb3dd0c33696698798244ca2f397b8b2ba8 [diff] [blame] |
As much as possible, remove dependence on python 2.5
diff --git a/src/python/oftest/parse.py b/src/python/oftest/parse.py index 9bd09b6..d60940a 100644 --- a/src/python/oftest/parse.py +++ b/src/python/oftest/parse.py
@@ -11,7 +11,10 @@ try: from scapy.all import * except: - sys.exit("Need to install scapy for packet parsing") + try: + import scapy as scapy + except: + sys.exit("Need to install scapy for packet parsing") """ of_message.py