We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab3af9 commit b62052aCopy full SHA for b62052a
discord/utils.py
@@ -303,7 +303,6 @@ def warn_deprecated(
303
stacklevel: :class:`int`
304
The stacklevel kwarg passed to :func:`warnings.warn`. Defaults to 3.
305
"""
306
- warnings.simplefilter("always", DeprecationWarning) # turn off filter
307
message = f"{name} is deprecated"
308
if since:
309
message += f" since version {since}"
@@ -316,7 +315,6 @@ def warn_deprecated(
316
315
message += f" See {reference} for more information."
317
318
warnings.warn(message, stacklevel=stacklevel, category=DeprecationWarning)
319
- warnings.simplefilter("default", DeprecationWarning) # reset filter
320
321
322
def deprecated(
0 commit comments