From a17e8faf97b9d76c1ed808750f658e3daa99639f Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Tue, 5 Dec 2023 15:25:03 +0100 Subject: [PATCH] replace one more use of `imp` --- DDCore/python/dd4hep_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DDCore/python/dd4hep_base.py b/DDCore/python/dd4hep_base.py index e42723c2b..3d5073c8d 100644 --- a/DDCore/python/dd4hep_base.py +++ b/DDCore/python/dd4hep_base.py @@ -11,6 +11,7 @@ from __future__ import absolute_import, unicode_literals import cppyy import importlib +import types import logging @@ -155,7 +156,7 @@ def unicode_2_string(value): tools = dd4hep.tools align = dd4hep.align detail = dd4hep.detail -units = imp.new_module('units') +units = types.ModuleType('units') # --------------------------------------------------------------------------- import_namespace_item('tools', 'Evaluator') # ---------------------------------------------------------------------------