summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-05-26 18:52:55 +0000
committerGerrit Code Review <review@openstack.org>2021-05-26 18:52:55 +0000
commitd4a00db7c1b08a300125777b136cfa9397e16c1a (patch)
treee72e7e923ef8429b4417ad96691859ab0fe528ab
parentc738bb970e16a75948dcd2e55bd90f45eac794de (diff)
parent4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b (diff)
downloadoslo-utils-d4a00db7c1b08a300125777b136cfa9397e16c1a.tar.gz
Merge "Deprecate the fnmatch module."
-rw-r--r--oslo_utils/fnmatch.py9
-rw-r--r--releasenotes/notes/deprecate-fnmatch-057a092d434a0c53.yaml5
2 files changed, 14 insertions, 0 deletions
diff --git a/oslo_utils/fnmatch.py b/oslo_utils/fnmatch.py
index 71439ab..c52cf05 100644
--- a/oslo_utils/fnmatch.py
+++ b/oslo_utils/fnmatch.py
@@ -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):
diff --git a/releasenotes/notes/deprecate-fnmatch-057a092d434a0c53.yaml b/releasenotes/notes/deprecate-fnmatch-057a092d434a0c53.yaml
new file mode 100644
index 0000000..e187d5f
--- /dev/null
+++ b/releasenotes/notes/deprecate-fnmatch-057a092d434a0c53.yaml
@@ -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+.