Merge "Deprecate the fnmatch module."

This commit is contained in:
Zuul 2021-05-26 18:52:55 +00:00 committed by Gerrit Code Review
commit d4a00db7c1
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,15 @@ import os
import posixpath
import re
import sys
import warnings
import debtcollector
warnings.simplefilter("always")
debtcollector.deprecate(
"Using the oslo.utils's 'fnmatch' module is deprecate, "
"please use the stdlib `fnmatch` module."
)
if sys.version_info > (2, 7, 9):

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Oslo.utils's ``fnmatch`` module is deprecated, please use the stdlib
``fnmatch`` module which is thread safe for python 3+.