From 26f87a457e233278945885dbea6a8b7774210d5b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 16 May 2017 11:24:19 +0200 Subject: [PATCH] Stop using oslo_utils.fnmatch This was a work around for old buggy Python 2.7 versions. Everybody will have to upgrade! Change-Id: Id105e2e8c1fab7af49c11b323db64886e57eade6 --- gnocchi/indexer/__init__.py | 2 +- releasenotes/notes/fnmatch-python-2.7-c524ce1e1b238b0a.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fnmatch-python-2.7-c524ce1e1b238b0a.yaml diff --git a/gnocchi/indexer/__init__.py b/gnocchi/indexer/__init__.py index 7d29ba92..e529382c 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/releasenotes/notes/fnmatch-python-2.7-c524ce1e1b238b0a.yaml b/releasenotes/notes/fnmatch-python-2.7-c524ce1e1b238b0a.yaml new file mode 100644 index 00000000..bab5e73a --- /dev/null +++ b/releasenotes/notes/fnmatch-python-2.7-c524ce1e1b238b0a.yaml @@ -0,0 +1,5 @@ +--- +other: + - | + A workaround for a Python 2.7 bug in `fnmatch` has been removed. Makes sure + you use at least Python 2.7.9 to avoid running into it.