From 39826f06f1159080324edd794dc3d9cc893c297f Mon Sep 17 00:00:00 2001 From: dengzhaosen Date: Wed, 28 Apr 2021 10:03:19 +0800 Subject: [PATCH] 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 --- oslo_messaging/notify/_impl_routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_messaging/notify/_impl_routing.py b/oslo_messaging/notify/_impl_routing.py index 0731039f7..548d4f564 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