From 5e333fc0f8d425335d31e875c1ab7f3303315039 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Mon, 26 Sep 2016 13:22:23 +0800 Subject: [PATCH] Use fnmatch from oslo.utils Standard library fnmatch in Python versions <= 2.7.9 has thread safe issue[1], we can use thread safe version from oslo.utils. [1]https://bugs.python.org/issue23191 Change-Id: I42e9deed338ef6a9a75bb84fa9efd1aaf2baeccd --- manila/share/drivers/emc/plugins/unity/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila/share/drivers/emc/plugins/unity/utils.py b/manila/share/drivers/emc/plugins/unity/utils.py index 693c12c1..41ac248b 100644 --- a/manila/share/drivers/emc/plugins/unity/utils.py +++ b/manila/share/drivers/emc/plugins/unity/utils.py @@ -14,7 +14,7 @@ # under the License. """ Utility module for EMC Unity Manila Driver """ -import fnmatch +from oslo_utils import fnmatch def do_match(full, matcher_list):