[tor-commits] [ooni-probe/master] Make sure to import Gen, SetGen and MTU even when pypcap is and libdnet are not installed
isis at torproject.org
isis at torproject.org
Sun Feb 24 19:10:38 UTC 2013
commit 56f038eea8cf63bcb7f984e4d075665f4d670d3d
Author: Arturo Filastò <art at fuffa.org>
Date: Fri Feb 8 17:44:09 2013 +0100
Make sure to import Gen, SetGen and MTU even when pypcap is and libdnet are not installed
---
ooni/utils/txscapy.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ooni/utils/txscapy.py b/ooni/utils/txscapy.py
index 62bde94..0e805e7 100644
--- a/ooni/utils/txscapy.py
+++ b/ooni/utils/txscapy.py
@@ -41,7 +41,7 @@ except ImportError, e:
PcapWriter = DummyPcapWriter
-
+ from scapy.all import Gen, SetGen, MTU
def getNetworksFromRoutes():
""" Return a list of networks from the routing table """
More information about the tor-commits
mailing list