Suppress importlib 3.12 warning about load_module (#6094)

This commit is contained in:
Jakub Kuczys 2023-04-24 20:09:18 +02:00 committed by GitHub
parent ab8f00ae7b
commit c6551f4bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
)