summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordengzhaosen <dengzhaosen@inspur.com>2021-04-28 10:03:19 +0800
committerJorhson Deng <dengzhaosen@inspur.com>2021-05-11 01:02:11 +0000
commit39826f06f1159080324edd794dc3d9cc893c297f (patch)
treee5b7f7aa0679619e0f93047d4f5aadf4f2e436ac
parent7e406c312a6514e7ae377edb52b9e02b5bf37a7d (diff)
downloadoslo-messaging-39826f06f1159080324edd794dc3d9cc893c297f.tar.gz
Remove the oslo_utils.fnmatch
Oslo.utils's fnmatch module was added to fix the py2.7 fnmatch module who was not thread safe [1]. Python 2.7 is no longer supported so now we can use the stdlib's fnmatch module and deprecate the one of oslo.utils. [1] https://bugs.python.org/issue23191$ Change-Id: Id5381a0a5216783f0df594b126786947db16a8d1
-rw-r--r--oslo_messaging/notify/_impl_routing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_messaging/notify/_impl_routing.py b/oslo_messaging/notify/_impl_routing.py
index 0731039..548d4f5 100644
--- a/oslo_messaging/notify/_impl_routing.py
+++ b/oslo_messaging/notify/_impl_routing.py
@@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
+import fnmatch
import logging
from oslo_config import cfg
-from oslo_utils import fnmatch
from stevedore import dispatch
import yaml