aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaviddavid <geiger.david68210@gmail.com>2024-05-09 08:04:16 +0200
committerdaviddavid <geiger.david68210@gmail.com>2024-05-09 08:04:16 +0200
commit6037e00ac231ec297a9ad0aacd46f3c6415bc759 (patch)
tree34bdcb7e101cf3bb3785cbe7da0392e3b720481d
parent39b88bfafa9249ca4663cf0557167079f0447780 (diff)
downloadmsec-6037e00ac231ec297a9ad0aacd46f3c6415bc759.tar
msec-6037e00ac231ec297a9ad0aacd46f3c6415bc759.tar.gz
msec-6037e00ac231ec297a9ad0aacd46f3c6415bc759.tar.bz2
msec-6037e00ac231ec297a9ad0aacd46f3c6415bc759.tar.xz
msec-6037e00ac231ec297a9ad0aacd46f3c6415bc759.zip
Migrate from imp to importlib
- the 'imp' module is deprecated from years and now Python 3.12 finally drops completely support of 'imp' module.
-rwxr-xr-xsrc/msec/help_draksec.py2
-rwxr-xr-xsrc/msec/man.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py
index 893b12b..9a7116f 100755
--- a/src/msec/help_draksec.py
+++ b/src/msec/help_draksec.py
@@ -4,7 +4,7 @@
#
import sys
-import imp
+import importlib
import inspect
import re
diff --git a/src/msec/man.py b/src/msec/man.py
index d896404..1d767c5 100755
--- a/src/msec/man.py
+++ b/src/msec/man.py
@@ -11,7 +11,7 @@
#---------------------------------------------------------------
import sys
-import imp
+import importlib
import inspect
import config