gentoo/dev-db/mongodb/files/mongodb-4.4.29-no-enterpris...

25 lines
969 B
Diff
Raw Normal View History

2024-04-28 21:57:37 +02:00
buildscripts/moduleconfig.py | 3 ---
1 file changed, 3 deletions(-)
2024-04-28 02:12:04 +02:00
diff --git a/buildscripts/moduleconfig.py b/buildscripts/moduleconfig.py
2024-04-28 21:57:37 +02:00
index b4d0bba0490..03541fab940 100644
2024-04-28 02:12:04 +02:00
--- a/buildscripts/moduleconfig.py
+++ b/buildscripts/moduleconfig.py
2024-04-28 21:57:37 +02:00
@@ -27,7 +27,6 @@ MongoDB SConscript files do.
2024-04-28 02:12:04 +02:00
__all__ = ('discover_modules', 'discover_module_directories', 'configure_modules',
'register_module_test') # pylint: disable=undefined-all-variable
-import imp
import inspect
import os
2024-04-28 21:57:37 +02:00
@@ -71,8 +70,6 @@ def discover_modules(module_root, allowed_modules):
2024-04-28 02:12:04 +02:00
print("adding module: %s" % (name))
fp = open(build_py, "r")
try:
- module = imp.load_module("module_" + name, fp, build_py,
2024-04-28 21:57:37 +02:00
- (".py", "r", imp.PY_SOURCE))
2024-04-28 02:12:04 +02:00
if getattr(module, "name", None) is None:
2024-04-28 21:57:37 +02:00
module.name = name
found_modules.append(module)