Sfoglia il codice sorgente

No longer requires tshark if not doing feature extraction.

Tom Flucke 6 anni fa
parent
commit
e148a5a126
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)