Drop warnings enable filter

[1] Enabled warnings without specifying category,
leading to all sort of warnings enabled, this patch
drops it and let it to consumers to enable warnings
types which they are interested in.

[1] https://review.opendev.org/c/openstack/oslo.utils/+/790429

Closes-Bug: #1934098
Change-Id: I822138c18e0932e8f7e3dc62267f167876c962ae
This commit is contained in:
yatinkarel 2021-06-30 14:03:37 +05:30
parent 25e3d5889d
commit 4dc538d1c0

View File

@ -16,11 +16,9 @@
"""
import fnmatch as standard_fnmatch
import warnings
import debtcollector
warnings.simplefilter("always")
debtcollector.deprecate(
"Using the oslo.utils's 'fnmatch' module is deprecated, "
"please use the stdlib 'fnmatch' module."