Ver Fonte

No longer requires tshark if not doing feature extraction.

Tom Flucke há 6 anos atrás
pai
commit
e148a5a126
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/feature-extractor/sample.py

+ 1 - 1
src/feature-extractor/sample.py

@@ -1,4 +1,3 @@
-import pyshark
 from datetime import datetime
 import typing
 from typing import List
@@ -39,6 +38,7 @@ class Sample:
             .total_seconds()
         
     def __init__(self, packets, keylog: typing.TextIO):
+        import pyshark
         self.__general = {}
         self.__extract_tag(keylog)
         self.__extract_activity_stats(packets)