diff options
author | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-04-21 12:22:04 +0800 |
---|---|---|
committer | ZhiQiang Fan <aji.zqfan@gmail.com> | 2016-04-21 12:22:47 +0800 |
commit | 38c0684a6be97fd1cb74e7bb1e426e1d6a525d65 (patch) | |
tree | 8dc0b3779ccbe950d01a0b3ecf008c3f22eae51a | |
parent | 3f340cd81899ee661224652caac9dc0ce04368fa (diff) | |
download | python-heatclient-38c0684a6be97fd1cb74e7bb1e426e1d6a525d65.tar.gz |
use thread safe fnmatch
fnmatch is not thread safe in python <2.7.10, let's use the safe
one in oslo.utils
Change-Id: I489271f8fca94b1a1cb3ad30790042fe7468338c
ref: https://hg.python.org/cpython/rev/fe12c34c39eb
-rw-r--r-- | heatclient/common/hook_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heatclient/common/hook_utils.py b/heatclient/common/hook_utils.py index c877f23..0dfe63e 100644 --- a/heatclient/common/hook_utils.py +++ b/heatclient/common/hook_utils.py @@ -10,9 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -import fnmatch import logging +from oslo_utils import fnmatch + import heatclient.exc as exc from heatclient.openstack.common._i18n import _ |