Commit f053aad668eb5982c958d79876dbcdfa506a9f9d

Authored by Philippe Lagadec
Committed by GitHub
2 parents 169ef505 80825c43

Merge pull request #841 from cccs-jh/remove_imp

Remove imp import from xxxswf for python 3.12 compatability
oletools/thirdparty/xxxswf/xxxswf.py
@@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
9 9
10 import fnmatch 10 import fnmatch
11 import hashlib 11 import hashlib
12 -import imp  
13 import math 12 import math
14 import os 13 import os
15 import re 14 import re
@@ -43,7 +42,6 @@ def yaraScan(d): @@ -43,7 +42,6 @@ def yaraScan(d):
43 # test if yara module is installed 42 # test if yara module is installed
44 # if not Yara can be downloaded from http://code.google.com/p/yara-project/ 43 # if not Yara can be downloaded from http://code.google.com/p/yara-project/
45 try: 44 try:
46 - imp.find_module('yara')  
47 import yara 45 import yara
48 except ImportError: 46 except ImportError:
49 print('\t[ERROR] Yara module not installed - aborting scan') 47 print('\t[ERROR] Yara module not installed - aborting scan')