improve arguments for relative '__import__()'

using None for 'fromlist' is slightly faster than an empty tuple
This commit is contained in:
Mike Fährmann
2025-10-21 12:06:50 +02:00
parent d7c97d5a97
commit 3deb5a413d
3 changed files with 3 additions and 3 deletions

View File

@@ -299,7 +299,7 @@ def _list_classes():
def _modules_internal():
globals_ = globals()
for module_name in modules:
yield __import__(module_name, globals_, None, (), 1)
yield __import__(module_name, globals_, None, None, 1)
def _modules_path(path, files):