mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Suppress importlib 3.12 warning about load_module (#6094)
This commit is contained in:
parent
ab8f00ae7b
commit
c6551f4bcc
@ -371,3 +371,12 @@ if not any(_re.match("^-(-debug|d+|-verbose|v+)$", i) for i in _sys.argv):
|
||||
module="discord",
|
||||
message="'audioop' is deprecated and slated for removal",
|
||||
)
|
||||
# DEP-WARN - will need a fix before Python 3.12 support
|
||||
#
|
||||
# DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
|
||||
_warnings.filterwarnings(
|
||||
"ignore",
|
||||
category=DeprecationWarning,
|
||||
module="importlib",
|
||||
message=r"the load_module\(\) method is deprecated and slated for removal",
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user