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