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:
parent
c48df655d1
commit
47f36a035c
4
plug.py
4
plug.py
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user