Red-DiscordBot
Red-DiscordBot copied to clipboard
Fix DeprecationError from `ModuleSpec.loader.load_module` in `Red.load_extension`
Description of the changes
This PR changes load_module in Red.load_extension to exec_module to give support for Python 3.12
Have the changes in this PR been tested?
Yes
We currently have some other plans for changes to the import system (related to #2446) so I'm going to mark this as Blocked for now and we will see if it's still needed once we either make those changes or decide to defer them.
Sorry, closed by accident because of conflicts 😅
Recently found a bug, apparently if you load warnings (redbot.cogs.warnings) it replaces the built-in warnings module with red's warnings cog. Will find a fix ASAP.
Fixed!