From 80825c4359f445b44ea54200e7398617e445a994 Mon Sep 17 00:00:00 2001 From: cccs-jh <63320703+cccs-jh@users.noreply.github.com> Date: Mon, 12 Feb 2024 20:21:36 -0500 Subject: [PATCH] Remove imp import from xxxswf for python 3.12 compatability --- oletools/thirdparty/xxxswf/xxxswf.py | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) diff --git a/oletools/thirdparty/xxxswf/xxxswf.py b/oletools/thirdparty/xxxswf/xxxswf.py index 12bb152..7f1c6c5 100644 --- a/oletools/thirdparty/xxxswf/xxxswf.py +++ b/oletools/thirdparty/xxxswf/xxxswf.py @@ -9,7 +9,6 @@ import fnmatch import hashlib -import imp import math import os import re @@ -43,7 +42,6 @@ def yaraScan(d): # test if yara module is installed # if not Yara can be downloaded from http://code.google.com/p/yara-project/ try: - imp.find_module('yara') import yara except ImportError: print('\t[ERROR] Yara module not installed - aborting scan') -- libgit2 0.21.4