From 8da63a2ff34c83a29acb07a7c2d8bce900dc8254 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Thu, 21 Apr 2016 12:19:30 +0800 Subject: [PATCH] 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: I332c63d4b1253ae3c520689a3d8cb5c479267370 ref: https://hg.python.org/cpython/rev/fe12c34c39eb --- gnocchi/indexer/__init__.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnocchi/indexer/__init__.py b/gnocchi/indexer/__init__.py index 97cc9eca5..4ad7bf5a8 100644 --- a/gnocchi/indexer/__init__.py +++ b/gnocchi/indexer/__init__.py @@ -13,12 +13,12 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -import fnmatch import hashlib import os import iso8601 from oslo_config import cfg +from oslo_utils import fnmatch from oslo_utils import netutils import six from stevedore import driver diff --git a/requirements.txt b/requirements.txt index 27e85c2ac..7b39a8ac7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ oslo.config>=2.6.0 oslo.log>=1.0.0 oslo.policy>=0.3.0 oslo.serialization>=1.4.0 -oslo.utils>=1.6.0 +oslo.utils>=3.3.0 oslo.middleware pandas>=0.17.0 pecan>=0.9