Skip to content

Commit deb7885

Browse files
committed
Fix import filtering in Python module loader
1 parent ae0242b commit deb7885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klongpy/sys_fn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _import_module(klong, x, from_set=None):
405405
module = import_module_from_sys(x)
406406

407407
export_items = module.__dict__.get("klongpy_exports") or module.__dict__
408-
ffn = lambda p: p[0] in from_set if from_set is not None else lambda p: not p[0].startswith("__")
408+
ffn = (lambda p: p[0] in from_set) if from_set is not None else (lambda p: not p[0].startswith("__"))
409409

410410
ctx = klong._context.pop()
411411
try:

0 commit comments

Comments
 (0)