From 6d439b45848ae8c33195e750cf986d6b249f9845 Mon Sep 17 00:00:00 2001 From: Richard Connon Date: Wed, 1 Nov 2023 18:29:44 +0000 Subject: [PATCH] Don't allow module loading by default --- lupa/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lupa/__init__.py b/lupa/__init__.py index 41e091e9..b48dcb69 100644 --- a/lupa/__init__.py +++ b/lupa/__init__.py @@ -51,11 +51,7 @@ def _import_newest_lib(): # prefer Lua over LuaJIT and high versions over low versions. module_name = max(modules, key=lambda m: (m[1] == 'lua', tuple(map(int, m[2] or '0')))) - # We need to enable global symbol visibility for lupa in order to - # support binary module loading in Lua. If we can enable it here, we - # do it temporarily. - with eager_global_linking(): - _newest_lib = __import__(module_name[0], level=1, fromlist="*", globals=globals()) + _newest_lib = __import__(module_name[0], level=1, fromlist="*", globals=globals()) return _newest_lib