Explorar o código

No longer requires tshark if not doing feature extraction.

Tom Flucke %!s(int64=6) %!d(string=hai) anos
pai
achega
e148a5a126
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)