1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

[1462] Remove Useless Comment

Add Slightly More Useful Comment
This commit is contained in:
David Sangrey 2024-05-01 11:08:27 -04:00
parent c48df655d1
commit 47f36a035c
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -67,8 +67,8 @@ class Plugin:
filename = 'plugin_'
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
spec = importlib.util.spec_from_file_location(filename, loadfile)
if spec is not None and spec.loader is not None: # Check if spec and spec.loader are not None
# Replaces older load_module() code. Includes a safety check that the module name is set.
if spec is not None and spec.loader is not None:
module = importlib.util.module_from_spec(spec)
sys.modules[module.__name__] = module
spec.loader.exec_module(module)