Replace oslo_utils.fnmatch with fnmatch

The oslo_utils.fnmatch module was added to solve an issue in py2.7 but
it is no longer required because py2.7 is no longer supported.
The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's
fnmatch module should be used instead.

[1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b

Change-Id: Ibae52796df829f151c3088026a326deaf859bd44
This commit is contained in:
Takashi Kajinami 2021-07-06 21:17:38 +09:00
parent 14922b71d2
commit 482e1e974f
3 changed files with 4 additions and 3 deletions

View File

@ -13,11 +13,11 @@
# 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 os
import pkg_resources
from oslo_log import log
from oslo_utils import fnmatch
import yaml
LOG = log.getLogger(__name__)

View File

@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import fnmatch
from oslo_config import cfg
from oslo_log import log
from oslo_utils import fnmatch
from oslo_utils import timeutils
import pkg_resources

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import defaultdict
import fnmatch
import hashlib
import itertools
import json
@ -24,7 +25,6 @@ import uuid
from gnocchiclient import exceptions as gnocchi_exc
from keystoneauth1 import exceptions as ka_exceptions
from oslo_log import log
from oslo_utils import fnmatch
from oslo_utils import timeutils
from stevedore import extension
from urllib import parse as urlparse