Skip to content

Commit 22ed4dd

Browse files
DarkFeatherDarkFeather
authored andcommitted
importlib moved abc.Loader into _abc python/cpython#20938
1 parent 5321cef commit 22ed4dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ModuleManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _load_module(self, bot: "IRCBot.Bot", definition: ModuleDefinition,
235235
definition.filename)
236236
module = importlib.util.module_from_spec(import_spec)
237237
sys.modules[import_name] = module
238-
loader = typing.cast(importlib.abc.Loader, import_spec.loader)
238+
loader = typing.cast(importlib._abc.Loader, import_spec.loader)
239239
loader.exec_module(module)
240240

241241
module_object_pointer = getattr(module, "Module", None)

0 commit comments

Comments
 (0)