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:
parent
14922b71d2
commit
482e1e974f
|
@ -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__)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue