Commit 80825c4359f445b44ea54200e7398617e445a994
1 parent
82b49eb6
Remove imp import from xxxswf for python 3.12 compatability
Showing
1 changed file
with
0 additions
and
2 deletions
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') |